Problem when fetching page using urllib2.urlopen
Diez B. Roggisch
deets at nospam.web.de
Mon Aug 10 13:11:12 EDT 2009
dorzey wrote:
> "geturl - this returns the real URL of the page fetched. This is
> useful because urlopen (or the opener object used) may have followed a
> redirect. The URL of the page fetched may not be the same as the URL
> requested." from
> http://www.voidspace.org.uk/python/articles/urllib2.shtml#info-and-geturl
>
> It might be worth checking that you are actually getting the page you
> want; I seem to remember that semicolons need to be encoded, similar
> to '&'.
You remember wrong.
http://www.faqs.org/rfcs/rfc2396.html
See Section 3.3, path-components.
Diez
More information about the Python-list
mailing list