-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
h11 fails on multiple targets where other HTTP clients work #95
Comments
Can you file individual bugs for the different issues? "h11 should work" is too vague to figure out actual code changes :-). The problem is to figure out what exactly servers are doing that h11 needs to support. Multiple content-lengths already has an issue here: #92 What on earth is a "600" response? I've never heard of that. "Malformed data" means that one of h11's parsing regexps failed. Need more details to figure out which one needs to be loosened and how. "Receive buffer too long" probably means that the headers were >16384 bytes, which is the default Lines 23 to 32 in 68e32db
Probably it would make sense to look at clients too, though. Apparently curl has a hardcoded limit of 102400? https://curl.haxx.se/mail/lib-2019-09/0023.html |
The 600 response doesn't actually exist in the standard, it's something that whoever configured the server created. Nonetheless, shouldn't be a reason to reject the response. These were found out using the httpx library. More examples and discussion here: encode/httpx#767 |
Here's an issue for one possible cause of the "malformed data" – not sure if it's the one you saw or not. (Or maybe you saw multiple, I dunno) |
Whoops, I meant this issue: #97 |
LinkedIn is an example of where the status code >= 600 comes up in the wild. They are (in)famous for returning 999 status codes. See: https://stackoverflow.com/questions/27231113/999-error-code-on-head-request-to-linkedin or just run |
Considering for example this snippet of code
Other errors of the same kind that I've encountered include:
These are all basically ill-configured servers, sometimes even against protocol specs, but they actually appear a lot in the wild. I think these should work nonetheless, as most HTTP clients don't make these kinds of restrictions and they do allow users to see the underlying data despite the misconfigurations.
The text was updated successfully, but these errors were encountered: