How to create a dll in dotnet

To get something you never had, you have to do something you never did-Bimal Patel

Sunday, January 30, 2011

How a web page is served from Server in IIS?


How do i get a page in my browser  when i type a  url in browser and press Enter key?.
This was my first  question which was in my mind when i started using  internet,i thought it was a miracle.
Then when i started learning about technologies i came to know that the page which i get  in the browser was from server.But even that i could not convince myself.
So finally i started learning dotnet ,then i realized how exactly this works.I am writing this article by referring some books and articles over internet.If visitors of this article feels some thing wrong or would like to add up some thing  you are always welcome.

click Image to see the Enlarged Image


Now see the above picture,here initially the user from his browser types a url and clicks Enter key,as soon it is done a pipeline will be opened to the server ,technically we term this as httppipeline.
Now we  can term  this as a request,bcoz the user is requesting for page  by typing the url in the browser.Now request will be travelled by the pipeline so we can assume this pipeline as a vehicle.
So Now our Request reached the server,now server checks who u are?once it authenticates ,then next step is filter .I saw that our request will be filtered,how is it filtered?
IIS (Internet Information Service) server has a filter called ISAPI filter  ,this particular searches what request is of type.
Suppose consider if requested page is aspx page,it routes the request to aspx engine,if it is some other page then it routes to some other engine.

So as soon as filtering process is done ,next step is process ,here the our requested page is identified and compiled .once it is compiled then  our request is converted in to response.

Now we have response ,this response will travel along the pipeline and reaches your browser and presented to us .
Most important thing to remember is what ever response presented on the browser will be html,irrespective of the language/framework  we use,you can use java,dotnet,php ,or any thing final output on the browser will be html.

I am going to add up what httphandlers and httpmodules are to this article soon

No comments:

Post a Comment