h2c - headers to curl
Paste the HTTP request into the text field and get the correspending curl command line for generating such a request.
Documentation links for used options
- --user-agent use this custom User-Agent request header
- --cookie pass on this custom Cookie: request header
- --data-binary send this string as a body with POST
- --header add, replace or remove HTTP headers from the request
The generated command line assumes a HTTPS site and generates such a URL. There is typically nothing in the request that tells if HTTPS or HTTP was used.
If you submit an illegally formatted HTTP request, chances are the shown curl command line might not reproduce it perfectly. curl is primarily made to generate fine HTTP.
Use this with curl!
Save the HTTP request you want to send in a local file, then send it here like this:
... and you'll get a curl command line in response.
All data you submit to this web service will be crunched and converted on the curl server. To keep your HTTP requests private, download h2c and run it yourself locally.
h2c on github