HTTPLib and POST problem with '?'

Jason Orendorff jason at jorendorff.com
Mon Jan 14 01:56:40 EST 2002


> it works well but only if the script is like
> http://www.musi-cal.com/cgi-bin/script.cgi
> but if the script is like
> http://www.musi-cal.com/cgi-bin/script.cgi?name=Paul
> (note a part after ? ) it means that PUTREQUEST should be
> 
>  h.putrequest("POST", "/cgi-bin/script.cgi?name=Paul")
> 
> but httplib ignores everything after '?' and sends only
> /cgi-bin/script.cgi

I don't think this is true.  httplib sends whatever string
you pass to it.  It doesn't check the string at all.
It doesn't chop anything off.

What version of Python are you using?

## Jason Orendorff    http://www.jorendorff.com/




More information about the Python-list mailing list