[issue34777] urllib.request accepts anything as a header parameter for some URLs

Jose Gama report at bugs.python.org
Fri Sep 28 05:29:52 EDT 2018


Jose Gama <josephgama at yahoo.com> added the comment:

Yes, I agree, it's not a bug.This note might help other people who run into the same questions, particularly with error handling.Thank you!
    On Friday, September 28, 2018, 7:21:03 AM GMT+2, Karthikeyan Singaravelan <report at bugs.python.org> wrote:  

Karthikeyan Singaravelan <tir.karthi at gmail.com> added the comment:

Thanks for the details. Each server behaves differently for these headers which depends on the server configuration and using other client like curl will also return the same result as Python does. So I would propose closing it as not a bug since there is no bug with Python and it behaves like other clients do.

Thanks again for the report!

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34777>
_______________________________________

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34777>
_______________________________________


More information about the Python-bugs-list mailing list