Re: How can I get the content of a web site using http library

2007-03-30 Thread Lawrence Oluyede
<[EMAIL PROTECTED]> wrote: > http://www.python.org/doc/current/lib/module-urllib2.html > > Look into urlopen's data parameter. I add also this tutorial to the plate: http://www.voidspace.org.uk/python/articles/urllib2.shtml -- Lawrence, oluyede.org - neropercaso.it "It is difficult to get a ma

Re: How can I get the content of a web site using http library

2007-03-29 Thread irstas
On Mar 29, 10:49 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Thanks. Can you please tell me how can I do a Post form submission > using the urlLib2 library? I look at your link, but i cant find an > example there. > > Thank you. http://www.python.org/doc/current/lib/module-urllib2.html L

Re: How can I get the content of a web site using http library

2007-03-29 Thread kyosohma
On Mar 29, 3:07 pm, Thorsten Kampe <[EMAIL PROTECTED]> wrote: > * [EMAIL PROTECTED] (29 Mar 2007 12:18:19 -0700) > > > I am trying to get the content of a web site like this: > > But my question is how can I do a 'GET' request without putting the '/ > > index.html'' > > import urllib > print urllib

Re: How can I get the content of a web site using http library

2007-03-29 Thread Thorsten Kampe
* [EMAIL PROTECTED] (29 Mar 2007 12:18:19 -0700) > I am trying to get the content of a web site like this: > But my question is how can I do a 'GET' request without putting the '/ > index.html'' import urllib print urllib.urlopen('http://www.yahoo.com/').read() -- http://mail.python.org/mailman/l

Re: How can I get the content of a web site using http library

2007-03-29 Thread [EMAIL PROTECTED]
On Mar 29, 2:34 pm, [EMAIL PROTECTED] wrote: > On Mar 29, 2:18 pm, "[EMAIL PROTECTED]" > > > > <[EMAIL PROTECTED]> wrote: > > I am trying to get the content of a web site like this: > > But my question is how can I do a 'GET' request without putting the '/ > > index.html'' > > >h = httplib.HTTP

Re: How can I get the content of a web site using http library

2007-03-29 Thread kyosohma
On Mar 29, 2:18 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I am trying to get the content of a web site like this: > But my question is how can I do a 'GET' request without putting the '/ > index.html'' > >h = httplib.HTTP('www.yahoo.com') > > # it takes 2 arguments here, but