Re: Passing a Cookie with httplib

2006-06-29 Thread John J. Lee
Grant Edwards <[EMAIL PROTECTED]> writes: > On 2006-06-28, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > From a shell script, I have used /usr/bin/curl to access a web site > > and pass a cookie > > I use ClientCookie for that. > > http://wwwsearch.sourceforge.net/ClientCookie/ Note that

Re: Passing a Cookie with httplib

2006-06-29 Thread scott
On Wed, 28 Jun 2006 20:21:37 -, Grant Edwards <[EMAIL PROTECTED]> wrote: >On 2006-06-28, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > >> From a shell script, I have used /usr/bin/curl to access a web site >> and pass a cookie > >I use ClientCookie for that. > >http://wwwsearch.sourceforge.ne

Re: Passing a Cookie with httplib

2006-06-29 Thread scott
On Thu, 29 Jun 2006 21:42:50 +1200, Lawrence D'Oliveiro <[EMAIL PROTECTED]> wrote: >According to , >you can pass additional "body" and "headers" args to >HTTPConnection.request. How about trying something like this in place of >the last li

Re: Passing a Cookie with httplib

2006-06-29 Thread Lawrence D'Oliveiro
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] wrote: >I would like to >hard code the cookie in the code so it works every time: > >i.e. cookie = 'auth=buster%3A12345678901234567890exZ9rzMqgtxa5A'. > >conn=httplib.HTTPConnection(WP_SERVER) >conn.request('GET',WP_PATH % uservalue)

Re: Passing a Cookie with httplib

2006-06-28 Thread Grant Edwards
On 2006-06-28, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > From a shell script, I have used /usr/bin/curl to access a web site > and pass a cookie I use ClientCookie for that. http://wwwsearch.sourceforge.net/ClientCookie/ -- Grant Edwards grante Yow! I'm into

Passing a Cookie with httplib

2006-06-28 Thread scott
Hello, >From a shell script, I have used /usr/bin/curl to access a web site and pass a cookie (as required by the site). But, I can't seem to accomplish this task with Python. I would like to use the httplib module to do this. Any thoughts on this subject? I would like to hard code the cookie i