This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author takahashi.shuhei
Recipients takahashi.shuhei
Date 2013-06-02.10:22:09
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1370168530.11.0.609209040554.issue18119@psf.upfronthosting.co.za>
In-reply-to
Content
When urllib.FancyURLopener encounters 302 redirection to a URL with fragments, it sends wrong URL to servers.

For example, if we run:
  urllib.urlopen('http://example.com/foo')
and the server responds like following.
  HTTP/1.1 302 Found
  Location: /bar#test
Then urllib tries next to fetch http://example.com/bar#test, instead of http://example.com/bar.

Correctly, urllib should strip fragment part of URL before issuing requests.
History
Date User Action Args
2013-06-02 10:22:10takahashi.shuheisetrecipients: + takahashi.shuhei
2013-06-02 10:22:10takahashi.shuheisetmessageid: <1370168530.11.0.609209040554.issue18119@psf.upfronthosting.co.za>
2013-06-02 10:22:10takahashi.shuheilinkissue18119 messages
2013-06-02 10:22:09takahashi.shuheicreate