Hi everyone, I need your help urgently
Hi all, I have two questions for an exam on Wednesday. I can solve part of the question and It seems impossible for me with the rest. Please help me.
Using netcat, nc(1), craft a valid http/1.1 request for getting http headers (not the html file itself!) for the main index page of www dot aalto dot fi. What request method did you use? Which headers did you need to send to the server? What was the status code for the request? Which headers did the server return? Explain the purpose of each header.
I try to do this question with the command:
nc -v www dot aalto dot fi 8080
HEAD / HTML/1.1
host: www dot aalto dot fi
And it returns:
Last-Modified: Thu, 02 Sep 2010 12:46:01 GMT
Client-Date: Mon, 27 Sep 2010 14:07:36 GMT
X-Pad: avoid browser bug
I really don't know what does it mean.
Using netcat, nc(1), start a bogus web server listening on the loopback interface port 8080. Verify with netstat(8), that the server really is listening where it should be. Direct your browser to the bogus server and capture the User-Agent: header
"Direct your browser to the bogus server and capture the User-Agent: header" I don't understand this question. Please help me. I am looking forward to your reply. Thank you so much.