version 1.39, 2005/07/17 19:15:38 |
version 1.40, 2005/07/17 19:18:47 |
|
|
when it might be necessary to verify what data a server is sending |
when it might be necessary to verify what data a server is sending |
in response to commands issued by the client. |
in response to commands issued by the client. |
For example, to retrieve the home page of a web site: |
For example, to retrieve the home page of a web site: |
.Pp |
.Bd -literal -offset indent |
.Dl $ echo -n \&"GET / HTTP/1.0\er\en\er\en\&" | nc host.example.com 80 |
$ echo -n "GET / HTTP/1.0\er\en\er\en" | nc host.example.com 80 |
|
.Ed |
.Pp |
.Pp |
Note that this also displays the headers sent by the web server. |
Note that this also displays the headers sent by the web server. |
They can be filtered, using a tool such as |
They can be filtered, using a tool such as |