A Command line tool to transfer data with URL syntax, for making HTTP/HTTPS requests.
-
HTTP and HTTPS protocols.
-
GET, POST, PUT, DELETE, HEAD and PATCH methods.
-
Pass custom header(s) to the server.
-
Send data in the request body.
-
Verbose mode for detailed info.
-
Keep-Alive connection.
gocurl [-options] <url> ...
or chain URLs with --next
gocurl [-options] <url> --next [-options] <url>...
The options are:
-dor--data: HTTP POST data
gocurl -d '{"key\": "value"}' <url> ...
-Hor--header: Pass custom header(s) to server
gocurl -H "Content-Type: application/json" <url> ...
-kor--keepAlive: Pass connection keep-alive to server
gocurl -k <url> ...
-Xor--method: Pass request method to server (default "GET")
gocurl -X <method> <url> ...
-vor--verbose: Enable verbose mode
gocurl -v <url> ...
git clone https://github.com/nobletk/gocurl
# then build the binary
make buildgo install https://github.com/nobletk/gocurl/cmd/gocurl@latest