By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,767 Members | 1,332 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,767 IT Pros & Developers. It's quick & easy.

Cookies

P: n/a
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
Share this Question
Share on Google+
1 Reply


P: n/a
> 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.