curl / H2c
Licence: mit
headers 2 curl. Provided a set of HTTP request headers, output the curl command line for generating that set. Try the converter online at
Stars: ✭ 113
Programming Languages
perl
6916 projects
Projects that are alternatives of or similar to H2c
Requester
Powerful, modern HTTP/REST client built on top of the Requests library
Stars: ✭ 273 (+141.59%)
Mutual labels: http-client, curl
Insomnia
The open-source, cross-platform API client for GraphQL, REST, and gRPC.
Stars: ✭ 18,969 (+16686.73%)
Mutual labels: http-client, curl
diciotto
✈️ A no-nonsense PHP Http client focused on DX (PSR 18 compliant)
Stars: ✭ 23 (-79.65%)
Mutual labels: curl, http-client
Curlie
The power of curl, the ease of use of httpie.
Stars: ✭ 877 (+676.11%)
Mutual labels: http-client, curl
request-extra
⚡️ Extremely stable HTTP request module built on top of libcurl with retries, timeouts and callback API
Stars: ✭ 14 (-87.61%)
Mutual labels: curl, http-client
Requests
Requests for PHP is a humble HTTP request library. It simplifies how you interact with other sites and takes away all your worries.
Stars: ✭ 3,433 (+2938.05%)
Mutual labels: http-client, curl
Urllib
Request HTTP(s) URLs in a complex world
Stars: ✭ 600 (+430.97%)
Mutual labels: http-client, curl
Guzzle
Guzzle, an extensible PHP HTTP client
Stars: ✭ 21,384 (+18823.89%)
Mutual labels: http-client, curl
Http Client
A high-performance, high-stability, cross-platform HTTP client.
Stars: ✭ 86 (-23.89%)
Mutual labels: http-client, curl
Php Curl Class
PHP Curl Class makes it easy to send HTTP requests and integrate with web APIs
Stars: ✭ 2,903 (+2469.03%)
Mutual labels: http-client, curl
Kurly
kurly is an alternative to the widely popular curl program, written in Golang.
Stars: ✭ 319 (+182.3%)
Mutual labels: http-client, curl
h2c
headers 2 curl. Provided a set of HTTP request headers, output the curl command line for generating that set.
$ cat test
HEAD / HTTP/1.1
Host: curl.haxx.se
User-Agent: moo
Shoesize: 12
$ ./h2c < test
curl --head --http1.1 --header Accept: --user-agent "moo" --header "Shoesize: 12" https://curl.haxx.se/
or a more complicated one:
$ cat test2
PUT /this is me HTTP/2
Host: curl.haxx.se
User-Agent: moo on you all
Shoesize: 12
Cookie: a=12; b=23
Content-Type: application/json
Content-Length: 57
{"I do not speak": "jason"}
{"I do not write": "either"}
$ ./h2c < test2
curl --http2 --header Accept: --user-agent "moo on you all" --header "shoesize: 12" --cookie "a=12; b=23" --header "content-type: application/json" --data-binary "{\"I do not speak\": \"jason\"} {\"I do not write\": \"either\"}" --request PUT "https://curl.haxx.se/this is me"
multipart!
$ cat multipart
POST /upload HTTP/1.1
Host: example.com
User-Agent: curl/7.55.0
Accept: */*
Content-Length: 1236
Expect: 100-continue
Content-Type: multipart/form-data; boundary=------------------------2494bcbbb6e66a98
--------------------------2494bcbbb6e66a98
Content-Disposition: form-data; name="name"
moo
--------------------------2494bcbbb6e66a98
Content-Disposition: form-data; name="file"; filename="README.md"
Content-Type: application/octet-stream
contents
--------------------------2494bcbbb6e66a98--
$ ./h2c < multipart
curl --http1.1 --user-agent "curl/7.55.0" --form name=moo --form [email protected] https://example.com/upload
authentication
$ cat basic
GET /index.html HTTP/2
Host: example.com
Authorization: Basic aGVsbG86eW91Zm9vbA==
Accept: */*
$ ./h2c < basic
curl --http2 --header User-Agent: --user "hello:youfool" https://example.com/index.html
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].