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

Failed to initialize #46

Closed
MaestroJurko opened this issue May 3, 2016 · 2 comments
Closed

Failed to initialize #46

MaestroJurko opened this issue May 3, 2016 · 2 comments

Comments

@MaestroJurko
Copy link

MaestroJurko commented May 3, 2016

How would someone set http version to 1.0?

https://curl.haxx.se/docs/manpage.html

-0, --http1.0

(HTTP) Tells curl to use HTTP version 1.0 instead of using its internally preferred: HTTP 1.1.

--http1.1

(HTTP) Tells curl to use HTTP version 1.1. This is the internal default version. (Added in 7.33.0)

--http2

(HTTP) Tells curl to issue its requests using HTTP 2. This requires that the underlying libcurl was built to support it. (Added in 7.33.0)

--http2-prior-knowledge

(HTTP) Tells curl to issue its non-TLS HTTP requests using HTTP/2 without HTTP/1.1 Upgrade. It requires prior knowledge that the server supports HTTP/2 straight away. HTTPS requests will still do HTTP/2 the standard way with negotiated protocol version in the TLS handshake.

HTTP/2 support in general also requires that the underlying libcurl was built to support it. (Added in 7.49.0)

@MaestroJurko
Copy link
Author

I am setting version with 'http1.0': true as one of the options, but then I get error: Failed to initialize.

@MaestroJurko MaestroJurko changed the title How to set http version Failed to initialize May 3, 2016
@MaestroJurko
Copy link
Author

Found the issue, there was a space in URL

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant