Scroll to navigation

ofhttp(1) General Commands Manual ofhttp(1)

NAME

ofhttp - perform HTTP and HTTPS requests and download files

SYNOPSIS

ofhttp [options] ri1 [iri2 ...]

DESCRIPTION

ofhttp is a program to perform HTTP and HTTPS requests and download files.

OPTIONS

Specify the file to send as body (- for standard input).
Continue download of existing file.
Force / overwrite existing file.
Show the help.
Add a header (e.g. X-Foo:Bar).
Set the method of the HTTP request.
Specify the output file name.
Do a HEAD request to detect the file name.
Sepcify SOCKS5 proxy.
Quiet mode (no output, except errors).
Verbose mode (print headers).
Ignore TLS errors and allow insecure redirects.
Ignore HTTP status code.

EXAMPLES

Download https://example.com/testfile.bin:

ofhttp https://example.com/testfile.bin

Download https://example.com/testfile.bin via Tor:

ofhttp -P 127.0.0.1:9050 https://example.com/testfile.bin

Send a POST request to an endpoint expecting JSON and only print the response:

echo '{"a":"b"}' | ofhttp -mPOST -b- -qo- https://example.com/json