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 BreamoreBoy, ezio.melotti, karlcow, mher, orsenthil, takahashi.shuhei
Date 2014-10-06.16:29:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1412612940.68.0.41704345894.issue18119@psf.upfronthosting.co.za>
In-reply-to
Content
Hi karl,

Of course it is correct that the user agent is redirected to http://example.com/bar#test when it got such response. However, it never means UA can send an HTTP request containing fragment part.

In RFC7230 section 3.1.1, HTTP request line is defined as:
    request-line   = method SP request-target SP HTTP-version CRLF
where request-target is defined in section 5.3. In usual case, it is origin-form:
    origin-form    = absolute-path [ "?" query ]
which never includes fragment part.

This means current urllib behavior violates HTTP/1.1 spec.
History
Date User Action Args
2014-10-06 16:29:00takahashi.shuheisetrecipients: + takahashi.shuhei, orsenthil, ezio.melotti, mher, karlcow, BreamoreBoy
2014-10-06 16:29:00takahashi.shuheisetmessageid: <1412612940.68.0.41704345894.issue18119@psf.upfronthosting.co.za>
2014-10-06 16:29:00takahashi.shuheilinkissue18119 messages
2014-10-06 16:29:00takahashi.shuheicreate