-
Notifications
You must be signed in to change notification settings - Fork 471
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
Setting Scheme and Host in headers? #547
Comments
Hi, Using url without scheme (http/https) and host looks really like HTTP so it' interesting. But how would you tell if the protocol is HTTP or HTTPS? Choosing one by default seems arbitrary... For the moment, you can, of course, templatize the url:
|
Oh,
where |
I find some interesting request from firefox, that some request is using a |
The original post is edited. |
I'm not at all a HTTP spec expert but I don't see the Scheme header often. It's not referenced in RFC2616 nor in https://en.wikipedia.org/wiki/List_of_HTTP_header_fields. As it is not "well known", I'm a bit reluctant to add this kind of syntax:
|
ok, since |
I really like this idea of making the request line more like actual HTTP request.
When a URL has no protocol, curl follows the option |
I'm using hurl as RESTful API specification, so I prefer a format that only the API path after the HTTP action, while the scheme and the host are defined in a
Scheme
and aHost
header:But when I run this example with the command
hurl tokens.hurl --variables-file=test.env
, I get this error:And I expect the example should work, but it seems this doesn't work now. Therefore, I'm here to request new feature support. Any advice?
The text was updated successfully, but these errors were encountered: