Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

As all of us uses the HTTP protocol for accessing the web, and request at the port number 80 of the server, now suppose i want to browse or download a file then i will request to the HTTP server by specifying the complete URL.

If the server is having file, it would return it if it is not having the file then what will it do?

I think it will make the request to the appropriate server which would be having this file and get the file and return to us.

In this way does the HTTP server acts as an intermediate between the client and the server?

Please correct me if i am wrong here. Many many thanx in advance

share|improve this question

closed as not a real question by David Schwartz, mailq, Ward, mgorven, Wesley Jun 27 '12 at 1:22

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

1 Answer 1

up vote 4 down vote accepted

The web server simply return the requested file if allowed/available. Otherwise, it returns the appropriate error (404 for not found, 403 for forbidden, etc..). You can have a look HTTP codes for a more complete list.

I think you mean the case when a web page contains several resources that are not all hosted locally. In this case, your browser will request each resource from the right server according to the URLs found in the page.

share|improve this answer
    
But a particular HTTP server would be having very limited resources then how would our request for file would be fulfilled if it is not on that server –  Luv Jun 24 '12 at 12:09

Not the answer you're looking for? Browse other questions tagged or ask your own question.