470,821 Members | 2,054 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,821 developers. It's quick & easy.

Cookies

Trying to write a python script that does the same thing my browser does
when posting a form.(cgi)

All works except for this. My browser has a cookie which it also sends, and
the server insists on getting.

So how can I replicate this under python? I've looked at cookie module but
can't see how to use it to achieve this. Please help.


Jul 18 '05 #1
1 1231
> Trying to write a python script that does the same thing my browser
does when posting a form.(cgi)

All works except for this. My browser has a cookie which it also sends,
and the server insists on getting.

So how can I replicate this under python? I've looked at cookie
module but can't see how to use it to achieve this. Please help.


That's right, the cookie module is for use on a server, not a client.

Try the ClientCookie module:

http://wwwsearch.sourceforge.net/ClientCookie/

I've used this successfully to do client-side things such as logging into
Yahoo as a browser would.

-Mike
Jul 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Brian Burgess | last post: by
20 posts views Thread by Brian Burgess | last post: by
1 post views Thread by John Taylor-Johnston | last post: by
6 posts views Thread by Mark | last post: by
6 posts views Thread by Stephane | last post: by
1 post views Thread by Alex Nitulescu | last post: by
reply views Thread by rn5a | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.