?
Solved

Requesting webpage from webserver

Posted on 2004-10-01
4
Medium Priority
?
267 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 33

Accepted Solution

by:
humeniuk earned 750 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

This is a guide to setting up a new WHM/cPanel Server to be used for web hosting accounts. It is intended for web hosting company administrators and dedicated server owners. For under $99 per month (considering normal rate of Big Data Cetnters like …
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’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

770 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