ASP 101 - Active Server Pages 101 - Web04
The Place ASP Developers Go!

Please visit our partners


Windows Technology Windows Technology
15 Seconds
4GuysFromRolla.com
ASP 101
ASP Wire
VB Forums
VB Wire
WinDrivers.com
internet.commerce internet.commerce
Partners & Affiliates














ASP 101 is an
internet.com site
ASP 101 is an internet.com site
IT
Developer
Internet News
Small Business
Personal Technology

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers

ASP 101 News Flash ASP 101 News Flash





Script Output:
Status: 200 OK

Here's The Page:

ASP 101 Http Request Sample Page

ASP 101 Http Request Sample Page

This is a sample HTML page that we threw together to illustrate doing an http request via ASP.

This file was served at: 12/13/2010 12:23:44 AM (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: 12/13/2010 12:23:44 AM (Webserver Time)
</p>
</body>
</html>

ASP HTML Download            FAQ

ASP+ Version
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.

Related Info


Samples

Home |  News |  Samples |  Articles |  Lessons |  Resources |  Forum |  Links |  Search |  Feedback

Internet.com
The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers