logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

ofhttp - perform HTTP and HTTPS requests and download files

Description

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

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

                                                                                                       ofhttp(1)

Name

       ofhttp - perform HTTP and HTTPS requests and download files

Options

-bfile, --body=file
              Specify the file to send as body (- for standard input).

       -c, --continue
              Continue download of existing file.

       -f, --force
              Force / overwrite existing file.

       -h, --help
              Show the help.

       -Hheader, --header=header
              Add a header (e.g. X-Foo:Bar).

       -mmethod, --method=method
              Set the method of the HTTP request.

       -ofile, --output=file
              Specify the output file name.

       -O, --detect-filename
              Do a HEAD request to detect the file name.

       -Pproxy, --proxy=proxy
              Sepcify SOCKS5 proxy.

       -q, --quiet
              Quiet mode (no output, except errors).

       -v, --verbose
              Verbose mode (print headers).

       --insecure
              Ignore TLS errors and allow insecure redirects.

       --ignore-status
              Ignore HTTP status code.

Synopsis

ofhttp [options] ri1 [iri2 ...]

See Also