ClientCookie problem - Difference between 'post' on the local network and the internet
John J Lee
jjl at pobox.com
Tue Oct 26 17:36:29 EDT 2004
On Fri, 22 Oct 2004, Max M wrote:
> I kept getting "HTTP Error 400: Bad Request" errors when submitting my
> forms. So I boiled it down to a simple example.
[...]
> #########################################
>
> import ClientCookie, urllib
[...]
> urllib2.HTTPError: HTTP Error 400: Bad Request
I'm not certain this is the problem fuzzyman refers to.
Thanks for sample, but I get NameError instead, so your script needs
fixing before I can easily investigate:
Traceback (most recent call last):
File "/home/john/bin/tst.py", line 59, in ?
print login(came_from, login_form)
File "/home/john/bin/tst.py", line 42, in login
data = {
NameError: global name 'name' is not defined
John
More information about the Python-list
mailing list