ofhttp(1)

πŸ“¦
version 1.5.7 Β· 3 versions
, in alpine 3.24, epel 10, epel 9, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, ubuntu resolute, ubuntu stonking

πŸ’– ofhttp β€” the manual page, but make it make sense πŸ’–

okay bestie, listen up β€” this is the manual for ofhttp, a general commands manual situation, and we are gonna get you fluent in it. no gatekeeping, no cap. 🫢


🌸 NAME 🌸

ofhttp β€” perform HTTP and HTTPS requests and download files ✨

that's it. that's the whole job. it does HTTP, it does HTTPS, it downloads your little files. iconic behaviour, honestly.


πŸŽ€ SYNOPSIS πŸŽ€

ofhttp [options] iri1 [iri2 ...]

so you're giving it some [options] (all optional, she's flexible πŸ’…) and then one or more iri1, iri2, ... β€” those are your IRIs, aka the things you want to fetch. plural. she can multitask. πŸ‘‘


πŸ¦‹ DESCRIPTION πŸ¦‹

lowkey the whole vibe is this: ofhttp is a program to perform HTTP and HTTPS requests and download files. that's the mission statement. that's the brand. she requests, she downloads, she slays. 🌈


✨ OPTIONS ✨

here's the full menu, no skips, no "you don't need to know that one" β€” we're covering everything fr fr:

  • -b file, --body=file β€” tell her which file to send as the body (and yes, - means standard input, because of course it does πŸ’œ).
  • -c, --continue β€” continue download of existing file. she picks up where she left off, like a true main character. 🧚
  • -f, --force β€” force / overwrite existing file. she is NOT asking permission. she is NOT checking in. she's overwriting. 🫣
  • -h, --help β€” show the help. the classic. when in doubt, -h it out. 😌
  • -H header, --header=header β€” add a header (e.g. X-Foo:Bar). stack as many as your heart desires. 🌸
  • -m method, --method=method β€” set the method of the HTTP request. GET, POST, whatever she's feeling today. πŸ’…
  • -o file, --output=file β€” specify the output file name. you name it, she writes it. πŸŽ€
  • -O, --detect-filename β€” do a HEAD request to detect the file name. she peeks at the headers first, like a detective with great hair. πŸ”
  • -P proxy, --proxy=proxy β€” specify SOCKS5 proxy. yes, a SOCKS5 proxy specifically. route that traffic, bestie. πŸ›£οΈ
  • -q, --quiet β€” quiet mode (no output, except errors). she's silent, but the errors still speak. πŸ’€
  • -v, --verbose β€” verbose mode (print headers). she tells you EVERYTHING. oversharing as a service. πŸ—£οΈ
  • --insecure β€” ignore TLS errors and allow insecure redirects.
bestie. 🚨 TLS errors are being IGNORED here, and insecure redirects are ALLOWED. that is exactly as spicy as it sounds. do not do this casually. this is a "I know exactly what I'm doing" flag, not a "teehee" flag. πŸ™ˆ
  • --ignore-status β€” ignore HTTP status code. the 404? the 500? she simply does not perceive them. 🌈

πŸ’« EXAMPLES πŸ’«

real scenarios, real commands, all of them copy-paste-able, character for character, because I love you:

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

look at that third one. echo piping JSON straight into her, -mPOST to set the method, -b- so the body comes from standard input, -qo- for quiet mode with output going to - (standard output, bestie), and then the URL. chef's kiss. she ate. πŸ”₯πŸ‘‘


ngl, the single most useful energy here: she does HTTP and HTTPS requests AND downloads files, and every one of those flags above is yours to mix and match. go be free. πŸ¦‹

and that's the whole page, bestie πŸ’œ this was pulled from the ofhttp(1) manual page β€” the General Commands Manual, no version string or date in sight, so we're rolling with vibes and vibes alone. go forth, make requests, download files, and remember: --insecure is not a personality trait. mwah. πŸ’…βœ¨πŸŽ€