httpsend

httpsend reads a request from the standard input, sends it and writes response to the standard output.

Options

With no option, httpsend tries to find a Host header to know where it must send the request.

> httpforge -s "Host: www.aspyct.org" -m HEAD | httpsend
HTTP/1.1 200 OK
Set-Cookie: 60gp=R752069543; path=/; expires=Fri, 04-Feb-2011 06:28:13 GMT
Date: Tue, 01 Feb 2011 18:16:28 GMT
Server: Apache/2.2.X (OVH)
X-Powered-By: PHP/5.2.17
X-Pingback: http://www.aspyct.org/xmlrpc.php
Vary: Accept-Encoding
Connection: close
Content-Type: text/html; charset=UTF-8
-a ADDRESS, --address=ADDRESS
 

Set the destination address. May be an IP or a name.

> httpforge -s "Host: www.aspyct.org" -m HEAD | httpsend -a www.example.com
HTTP/1.0 302 Found
Location: http://www.iana.org/domains/example/
Server: BigIP
Connection: close
Content-Length: 0
-p PORT, --port=PORT
 

Set the destination port. Default is 80 (HTTP’s default)

> httpforge -s "Host: www.aspyct.org" -m HEAD | httpsend -p 443
[Connection error...]
-t, --time

Display time needed for the request, in seconds, instead of the response.

> httpforge -s "Host: www.aspyct.org" -m HEAD | httpsend -t
0.646810

Table Of Contents

Previous topic

httpforge

This Page