-
Notifications
You must be signed in to change notification settings - Fork 520
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
Custom Protocol not allowed in Location Header #3293
Comments
Thanks @niklasweimann for reporting the bug. |
I believe this limitation makes sense when the "follow redirects" feature is enabled. However, I wasn't aware of the "follow redirects" feature and initially thought the assertions were purely text-based comparisons. It might be helpful to add an additional assertion keyword like "raw equals" to handle cases like this. For example:
In this case, "raw equals" would bypass all limitations and directly compare the string "www.example.net" with the value of the "Location“ header. |
The comparisons are already text-based. |
See #3314, we should:
Example:
Run with $ hurl --variable=file:///tmp/foo.txt
error: HTTP connection
--> -:1:5
|
1 | GET {{host}}
| ^^^^^^^^ could not parse Response
| With Hurl 5.0.1, the curl transfer happens, we should prevent it. |
What is the current bug behavior?
When using a custom protocol e.g. "market://" to address the Google Play Store on a android device, hurl is complaining that the protocol should be http or https
Steps to reproduce
Call an endpoint that returns a HTTP 307 with Location: market://de.XXXX.XXXX.
What is the expected correct behavior?
Hurl should be able to assert on this Headers too
Execution context
hurl --version
):hurl 5.0.1 (x86_64-apple-darwin23.0) libcurl/8.7.1 (SecureTransport) LibreSSL/3.3.6 zlib/1.2.12 nghttp2/1.61.0
Features (libcurl): alt-svc AsynchDNS HSTS HTTP2 IPv6 Largefile libz NTLM SPNEGO SSL UnixSockets
Features (built-in): brotli
The text was updated successfully, but these errors were encountered: