Re: [Tutor] urllib2.urlopen(url)

2008-04-20 Thread Monika Jisswel
Hi Martin, print 'status:', response.status > print 'reason:', response.reason > print 'document:', response.read() > This is definitly what i was looking for and did not know in which module to look. Thank you so much for the code illusration. Monika. 2008/4/20, Martin Walsh <[EMAIL PROTECTED

Re: [Tutor] urllib2.urlopen(url)

2008-04-20 Thread Martin Walsh
Monika Jisswel wrote: > Hi, > > can i stop urllib2.urlopen() from following redirects automatically ? It doesn't answer your question directly, but if you care more about the initial request/response than the content at the other end of a redirect -- you can use httplib. It might look something

[Tutor] urllib2.urlopen(url)

2008-04-18 Thread Monika Jisswel
Hi, can i stop urllib2.urlopen() from following redirects automatically ? one more question i had in mind, the function urllib2.urlopen.geturl() does get me what i want but does it do the download of the page i was redirected to ? or just downloads the initial page that actually does the redir