top | item 28623520

Generate Curl Command from Headers

8 points| genzer | 4 years ago |github.com

3 comments

order

johnthescott|4 years ago

how is this different than "curl --header @header-file"?

the github example shows more than just header construction. a command line for the entire http request is reconstructed, which is cool, but a bit different than what the headline implies.

combined with a cheap wireguard vpn and you have a simple tool for fooling stingy websites.

wut42|4 years ago

Afaik with `--header` you can only pass extraneous headers, not the METHOD or URL.

regecks|4 years ago

And then combine it with `--libcurl program.c`!