Web Server

Q.How web Servers works?
Ans:Lets say that you sitting at you computer ,surfing web http://www.eduinkerala.com
So you type that URL into your browser and press return. The browser brings you the web page located in the web server.
 At the most basic level possible, the following diagram shows the steps that brought that page to your screen:
 
Now Lets see what happen behind when you type http://www.eduinkerala.com
 The browser broke the URL into three parts:
     The protocol ("http")
    The server name ("www.eduinkerala.com") 
    The file name ("edu.html")
The browser communicated with a name server(see How DNS works) to translate the server name "www.eduinkerala.com" into an IP Address, which it uses to connect to the server machine. The browser then formed a connection to the server at that IP address on port 80.
Following the HTTP protocol, the browser sent a GET request to the server, asking for the file "http://www.eduinkerala.com/edu.htm." (Note that cookies may be sent from browser to server with the GET request -- see How Internet Cookies Work for details.).
When the Browser make the request ,it motions the protocol that it is using.
The server then translate the URL in to Folder path ,were the file exists.The server then sent the HTML text for the Web page to the browser. (Cookies may also be sent from server to browser in the header for the page.) The browser read the HTML tags and formatted the page onto your screen.
When the server Send the response ,it also identifies the protocol it is using.(Protocol is nothing but set of rules and regulation)
Once it is connected, it sends the request, which looks like:
GET /site HTTP/1.0
Header1: bla
Header2: blub
{emptyline}
Then the server responds like this:
200 OK
Header3: foo
Header4: bar
content following here..

Q.What HTTP cookie?
Ans:HTTP Cookie is usually a small piece of data sent from a website and stored in a user's web browser while a user is browsing a website.
Q.What is the Difference between Application Server and Web server?.
Ans:Application server is a server that hosts an API to expose Business Logic and Business Processes for use by other applications.
Web server is responsible for accepting HTTP requests from web clients, which are known as web browsers, and serving them HTTP responses along with optional data contents, which usually are web pages such as HTML documents and linked objects.
Q: What is a Session?
Ans: A Session refers to all the request that a single client makes to a server. A session is specific to the user and for each user a new session is created to track all the request from that user. Every user has a separate session and separate session variable is associated with that session. In case of web applications the default time-out value for session variable is 20 minutes, which can be changed as per the requirement.

Q: What is Session ID?
Ans: A session ID is an unique identification string usually a long, random and alpha-numeric string, that is transmitted between the client and the server. Session IDs are usually stored in the cookies, URLs (in case url rewriting) and hidden fields of Web pages.

Comments

  1. Gold Titanium Dart - The #1 C-Piece C-Piece C-Piece C-Piece C-Piece
    Gold Titanium Dart. The titanium solvent trap #1 C-Piece C-Piece C-Piece nier titanium alloy C-Piece apple watch series 6 titanium C-Piece C-Piece titanium lug nuts C-Piece C-Piece C-Piece C-Piece C-Piece C-Piece C-Piece C-Piece C-Piece men\'s titanium wedding bands C-Piece C-Piece C-Piece C-Piece C-Piece C-Piece

    ReplyDelete

Post a Comment

Popular posts from this blog

Docker ,MakeFile and Jenkins pipeline

Networking Basics

Continuous Deployment - Jenkins , Capistrano And Docker.