wwwget(1)
π NAME π
wwwget β it's literally a www request on HTTP β¨ from the General Commands Manual, section 1, (Rev. February 2007). She's an old queen but she still eats π
β¨ SYNTAX β¨
wwwget [-v] [-s] [-m...] [-abs] [-post| -head|-get|-redirect] [-c
name=value] [-p#
prompt] [-q] [-D domain] [-F from ] [-U username] [-P password] [-i
input_file] [-o output_file] [-r range] [ -to secs] [URL|host[:port]]
[query_argument]...
π¦ DESCRIPTION π¦
okay so bestie, here's the vibe: wwwget gets one or several HTTP document(s) and drops them directly on the standard output. No cap. She avoids the usage of Netscape or similar browser entirely β browsers could never, honestly π
And when you only hand her the host as a command-line argument? Then the documents relative to that host are assumed to be chilling in the standard input, just waiting for their moment π«
π OPTIONS π
-vβ verbose mode, bestie! She'll display number of bytes transferred so you can watch the numbers go brrr β¨-m[version]β emulates Mozilla (she inserts the User-Agent, etc. into the message); the default version is3. main character cosplay π-sβ silent mode: the HTTP header is stripped. By default that header (the one containing the status, Content-Type, etc.), which is terminated by a blank line, gets displayed on the standard error. so-sis your "girl, no commentary please" flag π-postβ get the document with the POST method. The default is the GET method.-headβ get the document with the HEAD method (so like, only the header). The default is the GET method.-getβ use the default GET method to retrieve the document.-redirectβ generates a Redirect block instead of querying the remote site. Essentially useful when you pair it with the-qoption, iykyk β¨-absβ translates relative anchors into absolute ones, which gives you useable HTML files. This operation is similar to thewwwabs(1)program π-ccookie β to forward a cookie (in the formname =value) πͺ-p[n]prompt β to define the prompt text β a text which indicates to stop the data. A number n may be attached to the-pargument to indicate to stop at the nth occurrence of the prompt.-qβ to indicate a query, i.e. the URL indicates only a cgi script, and arguments to that script are given as the query_argument supplementary arguments. When no supplementary query_argument appears on the command line, the arguments are assumed to be in the input_file or the standard input, one line per argument; in this input, lines starting by a blank (or a tab) are considered as a continuation of the previous line. An example is given below π-Ffrom β specifies theFrom:string in the HTTP protocol, typically used to propagate e-mails. This directive is used to propagate the origin of Aladin calls to VizieR π°οΈ-Ddomain β specifies the domain name which is required in the WWW-Authenticate context; the domain name is specified in theWWW-Authenticate:answer from the HTTP server π-Uusername β specifies the username for documents requiring an Authorization.-Ppassword β specifies the password for documents requiring an Authorization. shhh π€«-iinput_file β specifies the input_file, useful in the-querymode. Default input file isstdin.-ooutput_file β specifies the output_file, containing the results. Default output file isstdout.-rrange_of_bytes β specifies a starting/ending point of the document to get βοΈ-tosecs β specifies a time-out in seconds between the reception of 2 packets; the default is1200(20min) β³URL|host[:port]β okay so this one has three whole moods, pay attention bestie:- => When a full URL is specified, the document is located and displayed.
- => if only a hostname is supplied, document names are assumed to be specified in the standard input; documents specified in the standard input without hostname are then assumed to be relative to host.
- => when no document or host is specified, the standard input is assumed to contain fully qualified URLs.
π«Ά RETURNED STATUS π«Ά
wwwgetreturns0in case of success. we love a happy ending β¨- The code
1is returned when there are invalid arguments, or when the host could not be contacted. - The code
2is returned when the contacted server indicates an error (HTTP error code above 400).
π HTTP STATUSES π
(from http://www.faqs.org/rfcs/rfc2616.html) β a whole lore drop, bestie, let's go π«
- Informational 1xx
- =>
100 Continue - =>
101 Switching Protocols
- =>
- Successful 2xx
- =>
200 OK - =>
201 Created - =>
202 Accepted - =>
203 Non-Authoritative Information - =>
204 No Content - =>
205 Reset Content - =>
206 Partial Content
- =>
- Redirection 3xx
- =>
300 Multiple Choices - =>
301 Moved Permanently - =>
302 Found - =>
303 See Other - =>
304 Not Modified - =>
305 Use Proxy - =>
306 (Unused) - =>
307 Temporary Redirect
- =>
- Client Error 4xx
- =>
400 Bad Request - =>
401 Unauthorized - =>
402 Payment Required - =>
403 Forbidden - =>
404 Not Found - =>
405 Method Not Allowed - =>
406 Not Acceptable - =>
407 Proxy Authentication Required - =>
408 Request Timeout - =>
409 Conflict - =>
410 Gone - =>
411 Length Required - =>
412 Precondition Failed - =>
413 Request Entity Too Large - =>
414 Request-URI Too Long - =>
415 Unsupported Media Type - =>
416 Requested Range Not Satisfiable - =>
417 Expectation Failed
- =>
- Server Error 5xx
- =>
500 Internal Server Error - =>
501 Not Implemented - =>
502 Bad Gateway - =>
503 Service Unavailable - =>
504 Gateway Timeout - =>
505 HTTP Version Not Supported
- =>
π EXAMPLES π
- Get the result of a query into a reuseable file:
wwwget -strip -abs http://vizier/cgi-bin?-source=HIP > HIP.html
- Query vizier with arguments specified in the standard input:
wwwget -strip -q http://vizier.u-strasbg.fr/cgi-bin/asu-xml <<
====ENDofQuery
-source=I/239/hip_main
HIP=1..10
-out.all
====ENDofQuery
which could also be called as:
wwwget -q http://vizier.u-strasbg.fr/cgi-bin/asu-xml
-source=I/239/hip_main HIP=1..10 -out.all
or as
wwwget -q http://vizier.u-strasbg.fr/cgi-bin/asu-
xml\?-source=I/239/hip_main HIP=1..10 -out.all
π₯ SEE ALSO π₯
netscape(1) wwwabs(1)
and that's the whole page bestie π«Ά this was the General Commands Manual entry wwwget(1), (Rev. February 2007) β go forth and fetch, you absolute icon πβ¨π
π¦ where this page comes from
- fedora 43: cdsclient 4.07-5.fc43 Β· GPL-3.0-only
- fedora 44: cdsclient 4.07-7.fc44 Β· GPL-3.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms