Solved

Requesting webpage from webserver

Posted on 2004-10-01
4
259 Views
Last Modified: 2010-04-20
When you open i.e. or any web browser and enter a URL and submit the request to any webserver, "WHAT" is sent?  When I say what, I mean I know that were making a call (request) for maybe a specific webpage as follows:

Open I.E.
Enter: http://www.yahoo.com/ in the URL area
Click enter or submit

I know that the request for the above URL will return the default webpage (index.html or whatever) that the webserver has set up.  But "WHAT" does the webserver receive?  Does the webserver receive a text file that has request information?

0
Comment
Question by:wesunivofmd
  • 2
4 Comments
 
LVL 33

Accepted Solution

by:
humeniuk earned 250 total points
ID: 12201944
It sends a GET request, which is part of the HTTP protocol, not a text file or anything like that.  If you want more detail, this article is a good starting point: 'How Web Servers Work' (http://computer.howstuffworks.com/web-server.htm).  If that's too basic, see http://www.dslab.tuwien.ac.at/Task_Description/http.html or http://www.jmarshall.com/easy/http/.
0
 
LVL 34

Expert Comment

by:Dave_Dietz
ID: 12214315
It can be very interesting (and useful) to see what exactly is passing back and forth between a client and a web server.

Try downloading the IIS Resource Kit Tools from the following link:
http://www.microsoft.com/downloads/details.aspx?FamilyID=56fc92ee-a71a-4c73-b628-ade629c89499&DisplayLang=en

There is a utility called wfetch in there that will allow you to craft and send requests from basic get requests to complex requests with additional headers and body elements to any given webserver and see exactly what is sent back.

For example, this is what you would see for a standard GET request to http://www.yahoo.com:

started....
resolve hostname "www.yahoo.com"
WWWConnect::Connect("216.109.118.72","80")\n
source port: 4853\r\n
REQUEST: **************\n
GET / HTTP/1.1\r\n
Host: www.yahoo.com\r\n
Accept: */*\r\n
\r\n
RESPONSE: **************\n
HTTP/1.1 200 OK\r\n
Date: Mon, 04 Oct 2004 02:38:57 GMT\r\n
P3P: policyref="http://p3p.yahoo.com/w3c/p3p.xml", CP="CAO DSP COR CUR ADM DEV TAI PSA PSD IVAi IVDi CONi TELo OTPi OUR DELi SAMi OTRi UNRi PUBi IND PHY ONL UNI PUR FIN COM NAV INT DEM CNT STA POL HEA PRE GOV"\r\n
Cache-Control: private\r\n
Vary: User-Agent\r\n
Connection: close\r\n
Transfer-Encoding: chunked\r\n
Content-Type: text/html\r\n
\r\n
<html>
*** Actual page contents deleted for brevity***
></html>\n
\n
<!-- p9.www.dcn.yahoo.com uncompressed/chunked Sun Oct  3 19:38:57 PDT 2004 -->\n
WWWConnect::Close("216.109.118.72","80")\n
closed source port: 4853\r\n
finished.

Kinda cool, huh?  :-)

Hope this helps.....

Dave Dietz
0
 

Author Comment

by:wesunivofmd
ID: 12227168
Thanks, humeniuk
0
 
LVL 33

Expert Comment

by:humeniuk
ID: 12227266
Glad to be able to help out a little.  Good luck.

Thanks to Dave, too.  That's a handy tool.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Article by: kevp75
Hey folks, 'bout time for me to come around with a little tip. Thanks to IIS 7.5 Extensions and Microsoft (well... really Windows 8, and IIS 8 I guess...), we can now prime our Application Pools, when IIS starts. Now, though it would be nice t…
If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now