We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Similar to the -F multipart bugs, the strings after --data-bianry are not escaped.
-F
--data-bianry
Given this input:
POST / HTTP/1.1 Host: localhost:8000 User-Agent: curl/7.47.0 Accept: */* Content-Length: 5 Content-Type: application/x-www-form-urlencoded $PATH
h2c outputs: curl --http1.1 --user-agent "curl/7.47.0" --data-binary "$PATH" https://localhost:8000/
curl --http1.1 --user-agent "curl/7.47.0" --data-binary "$PATH" https://localhost:8000/
A POSIX shell will expand $PATH.
$PATH
The text was updated successfully, but these errors were encountered:
The same is true for other fields, such as user agent.
Sorry, something went wrong.
Yes, and other headers too.
Binary data (specifically non-printable characters) should also be escaped and written as \x##.
\x##
No branches or pull requests
Similar to the
-F
multipart bugs, the strings after--data-bianry
are not escaped.Given this input:
h2c outputs:
curl --http1.1 --user-agent "curl/7.47.0" --data-binary "$PATH" https://localhost:8000/
A POSIX shell will expand
$PATH
.The text was updated successfully, but these errors were encountered: