httpclient(1)
π httpclient β the manual, but make it cute π
okay bestie, so this is the page for httpclient from the General Commands Manual β yeah the section-1 girlies. it's a Shell command for performing HTTP requests using Ruby httpclient, and ngl she eats every single time. let's get into it π
β¨ NAME β¨
httpclient β a shell command for performing HTTP requests using Ruby httpclient. that's the whole vibe. periodt.
π SYNOPSIS π
httpclient <method> <uri> [params]
httpclient
likeβ¦ two whole moods. one with the deets, one with literally nothing. both valid. π«Ά
π¦ DESCRIPTION π¦
so basically, this program is an example/companion to the Ruby httpclient module β but here's the thing bestie, she's not just a lil sidekick, she can be used as a complete standalone HTTP client. main character energy fr fr. π
if you invoke her with a method and a URI, the specified URI will be requested via the method given from its server. and the allowed methods are:
headgetpostputdeleteoptionspropfindproppatchtrace
that's the whole roster. no additions, no substitutions. β¨
now, parameters can be specified as a third parameter and will be delivered accordingly β meaning, lowkey, they get appended to the URI after a ? sign if the method is get, but they become the posted body if the method is post. context-dependent delivery, very demure.
β οΈ important bestie: please note that no checks are done as to whether the requested parameters make sense in the context they are specified. they are just sent as-is. she does not judge, she does not validate, she simply ships it. π
example time:
$ httpclient get https://www.google.co.jp/ q=ruby
iconic. ate. no crumbs.
also!! starting from version 2.6.0, httpclient supports command download. like, she leveled up. π§
$ httpclient download http://host/path > file
the > is doing the heavy lifting there, redirecting it right into file. chef's kiss.
and if no parameters are specified, an interactive Ruby (irb) session will be opened, binding an HTTPClient object as 'self'. so you're literally in it. you're the client. you're the moment. π
you can then call HTTPClient instance methods like:
$ httpclient
>> get "https://www.google.co.jp/", :q => :ruby
(yes that's the actual indentation vibe, we're keeping it, it's giving console.)
and here's what she prints, in this exact order, every time:
- the
wiredumpof your request β that is, the commands sent to the server via HTTP - the request's headers
- and finally, the result
wiredump β headers β result. a three-course meal. π
π OPTIONS π
okay soβ¦ the OPTIONS section is empty. no flags, no switches, no --help, nothing. she has no options because she is the option. slay I guess?? πβ¨
π AUTHOR π
Gunnar Wolf <gwolf@debian.org>
that's the queen who wrote her. put some respect on the name. π«‘
πΈ NOTES πΈ
this manual page was written by Gunnar Wolf <gwolf@debian.org> for the Debian project, but can be freely used by others. sharing is caring bestie. π«Ά
and also:
this is free documentation; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
read that twice if you gotta. it's giving legal but make it generous. π
and that's the whole page!! this one was dated 2013-06-10 and lives in the httpclient(1) slot of the manual β an absolute classic, still serving looks a decade later. bye bestie, go make some HTTP requests π πβ
π¦ where this page comes from
- debian bookworm: ruby-httpclient 2.8.3+git20211122.4658227-1 Β· GPL-2.0-or-later OR Ruby
- debian trixie: ruby-httpclient 2.8.3+git20211122.4658227-1 Β· GPL-2.0-or-later OR Ruby
- ubuntu jammy: ruby-httpclient 2.8.3+git20211122.4658227-1 Β· GPL-2.0-or-later OR Ruby
- ubuntu noble: ruby-httpclient 2.8.3+git20211122.4658227-1 Β· GPL-2.0-or-later OR Ruby
- ubuntu resolute: ruby-httpclient 2.9.0-1 Β· GPL-2.0-or-later OR Ruby
- ubuntu stonking: ruby-httpclient 2.9.0-1 Β· GPL-2.0-or-later OR Ruby
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms