Solved

Requesting webpage from webserver

Posted on 2004-10-01
4
261 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

One of the typical problems I have experienced is when you have to move a web server from one hosting site to another. You normally prepare all on the new host, transfer the site, change DNS and cross your fingers hoping all will be ok on new server…
Introduction This article explores the design of a cache system that can improve the performance of a web site or web application.  The assumption is that the web site has many more “read” operations than “write” operations (this is commonly the ca…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

832 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