Problem when fetching page using urllib2.urlopen

dorzey dorzey at googlemail.com
Mon Aug 10 13:28:51 EDT 2009


On 10 Aug, 18:11, "Diez B. Roggisch" <de... at nospam.web.de> wrote:
> 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-ge...
>
> > 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

My memory has been known to let me down on occasions ;) Thank you for
correcting my mistake.



More information about the Python-list mailing list