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

Support --http1.0/-0 --http1.1 --http2 --http3 curl options #1155

Closed
jcamiel opened this issue Jan 10, 2023 · 1 comment · Fixed by #2023, #2022, #1828 or #1995
Closed

Support --http1.0/-0 --http1.1 --http2 --http3 curl options #1155

jcamiel opened this issue Jan 10, 2023 · 1 comment · Fixed by #2023, #2022, #1828 or #1995
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@jcamiel
Copy link
Collaborator

jcamiel commented Jan 10, 2023

Support --http1.0/-0, --http1.1 and --http2 curl options
These options allows the client to force a certain HTTP version (provided the server supports this version).

At command line, we could use:

$ hurl --http1.0 test.hurl

[Options] section should be supported:

GET https://foo.com
[Options]
http2: true
HTTP 200
@jcamiel jcamiel added the enhancement New feature or request label Jan 10, 2023
@jcamiel jcamiel added this to the 4.0.0 milestone Jun 9, 2023
@fabricereix fabricereix modified the milestones: 4.0.0, 4.1.0 Jun 28, 2023
@jcamiel jcamiel linked a pull request Aug 9, 2023 that will close this issue
@jcamiel jcamiel removed this from the 4.1.0 milestone Sep 10, 2023
@jcamiel jcamiel added this to the 4.2.0 milestone Sep 21, 2023
@jcamiel jcamiel removed a link to a pull request Oct 2, 2023
@jcamiel jcamiel changed the title Support --http1.0/-0 --http1.1 --http2 curl options Support --http1.0/-0 --http1.1 --http2 --http3 curl options Oct 17, 2023
@jcamiel jcamiel closed this as completed Oct 17, 2023
@jcamiel
Copy link
Collaborator Author

jcamiel commented Oct 17, 2023

Provided the underlying libcurl supports the queried HTTP version, you can specify it on CLI:

$ hurl --http3 foo.hurl

Or per request in a Hurl file:

GET https://foo.com
[Options]
http3: true
HTTP 200

GET https://foo.com
[Options]
http2: true
HTTP 200

Cheers !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment