multiple content-types break cgi.py

Jon Ribbens jon+usenet at unequivocal.co.uk
Sun Mar 4 17:27:00 EST 2007


In article <1173040160.844329.48050 at s48g2000cws.googlegroups.com>, Janto Dreijer wrote:
>> It's not a bug - sending multiple content-types is just totally broken.
>> What would such a header even be supposed to mean? It's like saying
>> "this is an apple orange".
> 
> Hmmm. Thanks! I suspected as much.
> 
> Rough inspection suggests that calling
>     connection.setRequestProperty("Content-Type", "application/x-www-
> form-urlencoded");
> on the Nokia 6230 would actually cause the value to be *appended* and
> not set.

If that method is inherited from java.net.URLConnection, then if the
phone is behaving as you suggest, its Java library is bugged and
behaving contrary to Sun's Java documentation.



More information about the Python-list mailing list