



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Uniform Resource Locator, HTML, Web Browser, HTTP, Multipurpose Internet Mail Extensions, Request for Comments, Encoding and Decoding, Encoding Example Escape Sequence. As you can see in this file, how descriptive above mentioned points are explained in this lecture of computer programming. VU is one of best university for computer science in our country.
Typology: Study notes
1 / 7
This page cannot be seen from the preview
Don't miss anything!




This lecture goal is to develop a little Web Server. This Web Server will serve HTTP requests, sent via a Web Browser using following URLs:
http://www.vu.edu.pk/default.html http://www.vu.edu.pk/index.asp http://www.vu.edu.pk/win32.html http://www.vu.edu.pk/courses/win32.html
Anatomy of a URL (Uniform Resource Locator): http://www.vu.edu.pk/courses/win32.html http:// protocol www.vu.edu.pk Web Server
courses/win32.html location of file on server
Or http://www.vu.edu.pk:80/.../....
:80 is the specifies Port Number to use for connection
HTML stands for Hyper Text Mark-up Language. This language contains text-formatting information e.g. font faces, font colors, font sizes, alignment etc. and also contains HyperLinks : text that can be clicked to go to another HTML document on the Internet. HTML tags are embedded within normal text to make it hypertext.
HTTP Client – a Web Browser examples are: Microsoft Internet Explorer Netscape Navigator
These web servers connect to your HTTP web server, requests a document, and displays in its window
Represents the Home Directory of a Web Server
IIS (Internet Information Server) has c:\inetpub\wwwroot\ as its default Home Directory
Here, /courses/ either corresponds to a Physical Directory c:\inetpub\wwwroot\courses OR Virtual Directoy
In a Web Server, we may specify that /courses/ will represent some other physical directory on the Web Server like D:\MyWeb. Then /courses/ will be a Virtual Directory. In Windows2000 and IIS 5.0 (Internet Information Server), a folder’s “Web Sharing…” is used to create a Virtual Directory for any folder.
GET /courses/win32.html HTTP/1.
Request line is followed by 2 Carriage-Return /Line-feed sequences
Method Resource Identifier
Version
Crlf
Crlf
HTTP/1.1 200 OK }Status Line
Content-type: text/html Content-Length:2061 Headers delimited by CR/LF sequence
Crlf
Actual data follows the headers
File extensions are non-standard across different platforms and cannot be used to determine the type of contents of any file.
Different common MIME types
image/gif GIF image image/jpeg JPEG image text/html HTML document text/plain plain text
In an HTTP response, a Web Server tells the browser MIME type of data being sent
MIME type is used by the browser to handle the data appropriately i.e. show an image, display HTML etc.
MIME:
MIME: Multi-purpose Internet Mail Extensions MIME Encoding features were added to enable transfer of binary data, e.g. images (GIF, JPEG etc.) via mail. Using MIME encoding HTTP can now transfer complex binary data, e.g. images and video
MIME: Short for Multipurpose Internet Mail Extensions, a specification for formatting non-ASCII messages so that they can be sent over the Internet.
HTTP version Status Code Description
Our server architecture will be based upon the following points
Many WinSock function calls e.g. accept() are blocking calls Server needs to serve up 5 clients simultaneously. Using other WinSock blocking calls, need to perform termination tasks for asynchronously terminating communication threads.
In this lecture, we studied some terms and their jobs. We studied HTTP (hyper text transfer protocol) which is used to transfer text data across the net work. We also studied HTML that is hyper text markup language which is simply a text script. Html is loaded in web browser and web browser translates the text and executes instruction written in form of text. For transferring media like image data and movie data, we overviewed MIME.
Note: For example and more information connect to Virtual University resource Online.