2 entries tagged opera

Things your mother didn’t tell you

Opera 5 omits the boundary parameter when uploading files. Lynx 2.8.2 does not support uploading files at all (but, oddly, does generate multipart/form-data forms properly—it even gives the charset parameter to the content-type of its form items). Python’s multifile module raises an exception on all of the above, for some inputs.

I guess that if I want to handle uploaded images, I get to write my own multipart/form-data parsers from scratch. I have already done this in C++ for work; I guess I can do it again in Python. Sigh.

More on Opera’s boundaries

It occurs to me I may be being harsh on Opera; I notice that elsewhere they show a preference for splitting MIME parameters over multiple physical lines. For example, they use

Content-disposition: form-data;
			name="fred"

as opposed to

Content-disposition: form-data; name="fred"

It is just about possible that this confuses thttpd so that it clips everything after the first CRLF when passing the headers to my script via CGI...?