This is a sample HTML page that we threw together
to illustrate doing an http request via ASP.
This file was served at: 8/28/2008 7:09:53 PM (Webserver Time)
Here's The Code:
<html>
<head>
<title>ASP 101 Http Request Sample Page</title>
</head>
<body>
<h1>ASP 101 Http Request Sample Page</h1>
<p>
This is a sample HTML page that we threw together
to illustrate doing an http request via ASP.
</p>
<p>
This file was served at: 8/28/2008 7:09:53 PM (Webserver Time)
</p>
</body>
</html>
Note: There is a newer component that you should
probably use instead of this one unless you have some reason not to. Check out
our newer HTTP Request Sample (WinHTTP v5.0).
When building a complex web site, it's often useful to be able
to retrieve information from other sites. For example, we've
teamed up with ASPWire to bring you some of the news on our
news page.
Until recently, in order to accomplish this type of thing
from an ASP page, you had to rely on 3rd party products to
assist you. With the advent of XML and the fact that information
transfer via HTTP is becoming the norm and not the exception,
Microsoft has finally released a product that will do this for
free... MS XML (which you can obtain
here)!
(If that link breaks try starting from here.)
This sample walks you through making an HTTP request to a
website. What you do with the response is up to you...
we just show you how to get it.
Oh and if your curious you can hit
the file being requested
by itself and see that it's nothing special. It's just
a simple page I whipped up for this demo.