Skip to content
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

Is there is any way to retrieve HTTP0.9? #310

Open
Kurusa opened this issue Mar 10, 2021 · 1 comment
Open

Is there is any way to retrieve HTTP0.9? #310

Kurusa opened this issue Mar 10, 2021 · 1 comment
Labels
feature A new feature!

Comments

@Kurusa
Copy link

Kurusa commented Mar 10, 2021

Got this error
Error: Error { kind: ProtocolViolation, context: None, source: Some(Error { description: "Unsupported protocol", code: 1, extra: None }) }

When retrieving HTTP0.9

@sagebind
Copy link
Owner

Support for HTTP/0.9 is disabled by default in the underlying libcurl library as of version 7.66.0, so unless you disable the static-curl feature and link to an old version of libcurl there is not currently a way of handling HTTP/0.9 responses. However, there is a configuration option that allows you to enable HTTP/0.9 support that we could leverage, though I don't know if libcurl plans on removing this entirely in the future.

Out of curiosity, is this a theoretical problem or are you trying to connect to an actual HTTP/0.9 web server? HTTP/0.9 is 30 years old now so I would be a little surprised to hear that people are still using servers that don't even support HTTP/1.0, though I could be mistaken. However, if there's a legitimate use-case for HTTP/0.9 then I'm not against adding opt-in support for it.

@sagebind sagebind added the feature A new feature! label Mar 21, 2021
sagebind added a commit that referenced this issue Dec 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature A new feature!
Projects
None yet
Development

No branches or pull requests

2 participants