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
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
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