Answer the question
In order to leave comments, you need to log in
How Does a Web Server Work?
Hello!
I want to understand in detail how a web server works.
The problem is that I find information only in pieces, and then only partially suitable for me.
What exactly is of interest:
- everything that happens from the moment you enter the url and press "Enter" until the moment when the resulting html page is displayed on the screen (as detailed as possible: http, errors, how data gets into POST, GET, SESSION ... and etc.).
Request: Please
give a link to relevant information (abstract, just a detailed article, video ... everything is fine).
Or write a list of the main points on which you need to look for information.
PS. If you are going to write something like: "not friends with the search engine?" or "stupid question" - it's better not to answer at all.
Answer the question
In order to leave comments, you need to log in
umm?
Here is the web server code, check the size (it is very small):
www.java2s.com/Code/Java/Network-Protocol/ASimpleW...
or
www.ibm.com/developerworks/systems/library/es-nweb.. Therefore ,
the answer to your question is very short: a request is made from your web browser to open a page, the web server crawls onto the disk and reads the page and returns it. Your browser does all the work. (exaggerated of course) That is, it parses the page, looks at which pictures need to be loaded and again sends requests to the web server, which simply returns the content
. What exactly do you want to understand?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question