You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Making origin-form request line valid in Hurl file.
Proposal
Change the parser to allow request lines resembling:
METHOD /path
As proposed in #547, host can be inferred from the Host header.
Protocol can be set with the option proto-default.
Additional context and resources
curl doc has this to say about the scheme part of the URL:
As a convenience, curl also allows users to leave out the scheme part from URLs. Then it guesses which protocol to use based on the first part of the hostname.
You can modify the default protocol to something other than HTTP with the --proto-default option.
-- Without Scheme
In addition, HTTP/2 defines "pseudo-headers" corresponding to parts in the URI.
o The ":method" pseudo-header field includes the HTTP method.
o The ":scheme" pseudo-header field includes the scheme portion of the target URI.
o The ":authority" pseudo-header field includes the authority portion of the target URI.
o The ":path" pseudo-header field includes the path and query parts of the target URI. [...] A request in asterisk form includes the value '*' for the ":path" pseudo-header field.
That said I am not sure what syntax to use in Hurl file for them.
Tasks to complete
TBD
The text was updated successfully, but these errors were encountered:
Problem to solve
Making origin-form request line valid in Hurl file.
Proposal
Change the parser to allow request lines resembling:
As proposed in #547, host can be inferred from the
Host
header.Protocol can be set with the option
proto-default
.Additional context and resources
curl doc has this to say about the scheme part of the URL:
In addition, HTTP/2 defines "pseudo-headers" corresponding to parts in the URI.
That said I am not sure what syntax to use in Hurl file for them.
Tasks to complete
TBD
The text was updated successfully, but these errors were encountered: