httpclient - retrieve data from an HTTP server
httpclient [-auth user:pass] [-authfile filename] [-method method] [-hostheader hostheader] [-mime type] [-body] [-ssl2] [-timeout seconds] <url>
httpclient is used to retrieve data from an HTTP. It supports both SSL encryption (Secure Sockets Layer, RFC2246) and HTTP Basic Authentication (RFC1945) when talking with the server.
It can retrieve the entire response, or just the body of the data from the server, and can optionally timeout if no response is received.
Specifies a username and password to be sent to the HTTP server to retrieve a password protected page. The username and password are specified in the clear and will be visible to other processes on the system (e.g. via 'ps'), so for scripts, it is recommended that the -authfile option be used in preference, and -auth only used for casual testing.
Specifies that a username and password should be read from filename and sent to the HTTP server using the Basic Authentication scheme. The file should contain one line of the form ``user:password''.
This option specifies which method should be used when accessing an HTTP server. The default is 'GET'; if you specify 'POST' or 'PUT' then data which is written to the stdin of httpclient will be sent to the server.
The default Host: header sent to the server is extracted from URL specified. This can be overridden with the -hostheader option.
If the method is changed to 'POST', then the default Content-Type: header is set to 'application/x-www-form-urlencoded'. This can be overridden with the -mime option.
Specifies that the headers from the HTTP header should not be printed to stdout, only the body of the response.
Specifies that the SSL transport should be used when communicating with the HTTP server. This option may not be available in countries where strong encryption is prohibited by national law.
Specifies the maximum number of seconds that httpclient should wait for a response from the HTTP server. If a response is not recieved in the specified number of seconds, an error message is printed and httpclient terminates with a non-zero exit status.
htpasswd(8),
cert(8)
Copyright (C) 2000-2001 Zeus Technology Limited. All rights reserved.