CH - Fundamentals of Internet Programming
CH - Fundamentals of Internet Programming
Programming
Internet Programming I: Chapter 1
1
Web Browser DNS Look Up:
www.w3schools.com
Internet
3
Web Server
TCP/IP Connection:
192.68.20.50
192.68.20.50
Port: 80
4
HTTP Request:
GET/ php
Blank line
Data – none for GET
11/9/2021 AASTU | Dept. of SWENG - 2014EC 17
HTTP Response
HTTP/2.0 200 OK
Date: Sun, 21 Apr 1996 02:20:42 GMT
Server: Microsoft-Internet-Information-Server/5.0
Connection: keep-alive
Content-Type: text/html
Last-Modified: Thu, 18 Apr 1996 17:39:05 GMT
Content-Length: 2543
<HTML> Some data... blah, blah, blah </HTML>
Data
11/9/2021 AASTU | Dept. of SWENG - 2014EC 18
Status Codes
200 OK Classes:
201 Created 1xx: Informational
202 Accepted - not used, reserved for future
2xx: Success
204 No Content
- action was successfully received,
301 Moved Permanently understood, and accepted
302 Moved Temporarily 3xx: Redirection
304 Not Modified - further action needed to complete request
400 Bad Request 4xx: Client Error
401 Unauthorized - request contains bad syntax or cannot be
403 Forbidden fulfilled
404 Not Found 5xx: Server Error
- server failed to fulfill an apparently valid
500 Internal Server Error
request
501 Not Implemented
502 Bad Gateway
503 Service Unavailable