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
!
When have a ! char (or maybe similar chars) in the cookies (Cookie: FOO=BAR!BAZ), the chrome Copy as cURL(bash) menu return be like this:
Cookie: FOO=BAR!BAZ
Copy as cURL(bash)
curl 'http://example.com/' \ -H $'Cookie: FOO=BAR\u0021BAZ' \ --compressed
When I use that in the https://incarnate.github.io/curl-to-php/ url, see:
// Generated by curl-to-PHP: http://incarnate.github.io/curl-to-php/ $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, 'http://example.com/'); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET'); curl_setopt($ch, CURLOPT_ENCODING, 'gzip, deflate'); $headers = array(); $headers[] = $_ENV["'Cookie": '; curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); $result = curl_exec($ch); if (curl_errno($ch)) { echo 'Error:' . curl_error($ch); } curl_close($ch);
You can see appears a syntax bug in $headers[] = $_ENV["'Cookie": ';...
$headers[] = $_ENV["'Cookie": ';...
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When have a
!
char (or maybe similar chars) in the cookies (Cookie: FOO=BAR!BAZ
), the chromeCopy as cURL(bash)
menu return be like this:When I use that in the https://incarnate.github.io/curl-to-php/ url, see:
You can see appears a syntax bug in
$headers[] = $_ENV["'Cookie": ';...
The text was updated successfully, but these errors were encountered: