urllib interpretation of URL with ".."
- From: John Nagle <nagle@xxxxxxxxxxx>
- Date: Fri, 22 Jun 2007 23:43:32 -0700
Here's a URL, found in a link, which gives us trouble
when we try to follow the link:
http://sportsbra.co.uk/../acatalog/shop.html
Browsers immediately turn this into
http://sportsbra.co.uk/acatalog/shop.html
and go from there, but urllib tries to open it explicitly, which
results in an HTTP error 400.
Is "urllib" wrong?
John Nagle
.
- Follow-Ups:
- Re: urllib interpretation of URL with ".."
- From: "Martin v. Löwis"
- Re: urllib interpretation of URL with ".."
- Prev by Date: Re: newbie question about unicode
- Next by Date: Re: need help with re module
- Previous by thread: high performance/threaded applications in Python - your experiences?
- Next by thread: Re: urllib interpretation of URL with ".."
- Index(es):