I want to look like how does a HTTP response header
looks like..
I am using PHP...
Especially i want to see a typical HTTP 404 response header..
If there is a php server array that contains all the http header info i want to find it!!
The above array has his items order by which will send it first?
Thx in advance!!
I have wireshark installed into my PC, but i don't know how to search for http response messages!!
The nc(1)
netcat tool can do this pretty easily, assuming you have a web server of some sort configured:
$ echo -n -e "GET /does_not_exit HTTP/1.1\r\nHost: localhost\r\n\r\n" | nc localhost 80
HTTP/1.1 404 Not Found
Server: nginx/0.8.54
Date: Mon, 02 Jan 2012 02:33:17 GMT
Content-Type: text/html
Content-Length: 169
Connection: keep-alive
<html>
<head><title>404 Not Found</title></head>
<body bgcolor="white">
<center><h1>404 Not Found</h1></center>
<hr><center>nginx/0.8.54</center>
</body>
</html>
$
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With