To Documents
Using HTTP for Client-to-server Communication
- In the early days, HTTP was entered directly by the user at the
console.
- To try the following using telnet, first enable telnet (Windows 7 or 8):
- Select Start >> Control Panel >> Programs >> Programs and Features >>
Turn Windows features on and off.
- Check Telnet Client.
- Click OK.
- On PCs with older operating systems, telnet is enabled by default.
- Now try typing the following line in a command window:
telnet condor.depaul.edu 80
(The port number is 80 for telnet.)
Then type the following HTTP command (not echoed so type carefully):
GET /sjost/ HTTP
followed by a blank line.
- If everything works properly, HTTP then displays the following header followed by the HTML code for the
requested page:
HTTP/1.1 302 Found
Date: Thu, 27 Apr 2011 02:50:55 GMT
Server: Apache/2.0.53 HP-UX-Apache-based_Web_Server (Unix) PHP/4.3.8
Last-Modified: Sun, 02 Apr 2011 20:09:32 GMT
ETag: "16896-61d-408dd700"
Accept-Ranges:Bytes
Content-Length: 1565
Connection: close
Content-Type: text/html
HTML code follows ...