Re: Python to PHP Login System (HTTP Post)

2006-06-24 Thread John J. Lee
[EMAIL PROTECTED] (John J. Lee) writes: [...] > #--- > import mechanize > > SHOW_COOKIES = True > > br = mechanize.Browser() > if SHOW_COOKIES: > cj = mechanize.CookieJar() > br.set_cookiejar(cj) > br.open("http://www.magnetshare.com/main.php";) > br.select_for

Re: Python to PHP Login System (HTTP Post)

2006-06-24 Thread test
On Sat, 24 Jun 2006 01:28:29 GMT, [EMAIL PROTECTED] (John J. Lee) wrote: >[EMAIL PROTECTED] writes: > >> On 22 Jun 2006 16:19:50 -0700, "Justin Azoff" >> <[EMAIL PROTECTED]> wrote: >> >> >Jeethu Rao wrote: >> >> You need to use httplib. >> >> http://docs.python.org/lib/httplib-examples.html >> >

Re: Python to PHP Login System (HTTP Post)

2006-06-23 Thread John J. Lee
[EMAIL PROTECTED] writes: > On 22 Jun 2006 16:19:50 -0700, "Justin Azoff" > <[EMAIL PROTECTED]> wrote: > > >Jeethu Rao wrote: > >> You need to use httplib. > >> http://docs.python.org/lib/httplib-examples.html > >> > >> Jeethu Rao > > > >Not at all. They need to read the documentation for urrli

Re: Python to PHP Login System (HTTP Post)

2006-06-22 Thread test
On 22 Jun 2006 16:19:50 -0700, "Justin Azoff" <[EMAIL PROTECTED]> wrote: >Jeethu Rao wrote: >> You need to use httplib. >> http://docs.python.org/lib/httplib-examples.html >> >> Jeethu Rao > >Not at all. They need to read the documentation for urrlib: > >http://docs.python.org/lib/module-urllib.

Re: Python to PHP Login System (HTTP Post)

2006-06-22 Thread Justin Azoff
Jeethu Rao wrote: > You need to use httplib. > http://docs.python.org/lib/httplib-examples.html > > Jeethu Rao Not at all. They need to read the documentation for urrlib: http://docs.python.org/lib/module-urllib.html http://docs.python.org/lib/node483.html "The following example uses the "POST"

Re: Python to PHP Login System (HTTP Post)

2006-06-22 Thread Jeethu Rao
You need to use httplib. http://docs.python.org/lib/httplib-examples.html Jeethu Rao -- http://mail.python.org/mailman/listinfo/python-list

Python to PHP Login System (HTTP Post)

2006-06-21 Thread test
Hi everyone, I'm creating a desktop Python application that requires web-based authentication for accessing additional application features. HTTP GET is really simple. HTTP POST is not (at least for me anyway);) I have tried a few different sources, but I cannot get HTTP POST to successfully