A go curl-like program to send http request from the command line.
You should not.
This was a fun project I made to better learn golang.
It has no advantages over curl
or wget
and several disadvantages.
gurl
is precompiled for several common platforms and architecturs.
NOTE: installation scripts likely won't work for ARM devices.
There is an install script for those on linux or macos.
curl https://raw.githubusercontent.com/BlazingFire007/gurl/main/install-nix.sh | bash
There is a batch (cmd.exe) script for those on windows.
powershell -Command wget -UseBasicParsing -o install-windows.bat https://raw.githubusercontent.com/BlazingF
ire007/gurl/main/install-windows.bat && call install-windows.bat && del install-windows.bat
It's important to put any command line options BEFORE the url.
gurl [options...] url
Please do not use -l, --loop
unless you really know what you're doing.
-n, --times
will not wait for the previous request to complete before sending the next.
- -A, --user-agent
- Send User-Agent to server (default "gurl/0.1.0")
- -H, --headers
- Set headers: "HEADER1::VAL1|||HEADER2::VAL2"
- -c, --cookie
- set cookie from FILE
- -d, --data
- HTTP POST data
- -h, --help
- Show this screen
- -i, --include
- Include protocol response headers in the output
- -l, --loop
- Send request until program error. (DO NOT USE: IGNORES ERRORS)
- -n, --times int
- Number of times to send the request. Max 10,000. (WARNING: ASYNC) (default 1)
- -o, --output
- Write to file instead of stdout
- -p, --post
- Send POST request
- -s, --silent
- Silent
- -u, --upload
- Transfer local FILE to destination
- -v, --version
- Display the version of this program
Known bugs:
- downloading a file (with
-o, --output
) is very unstable and often does not work. - urls that start with "http" cannot be prefixed with "http://" or "https://"
You can build for your platform by cloning this repo, and running go build .
You must have 'go' installed to build this tool.
An example of what that looks like on *nix systems:
git clone https://github.com/BlazingFire007/gurl.git
cd gurl
go build .