ASP 101 - Active Server Pages 101 - Web03
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/8/2010 12:35:09 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: 12/8/2010 12:35:09 PM (Webserver Time)
</p>
</body>
</html>

ASP HTML Download            FAQ

For general info about this sample and related questions (including an ASP.NET version) you should see our original HTTP sample.

This sample walks you through making an HTTP request using WinHttp 5.0 which ships with MSXML 4.0. This version doesn't require you to go through the MS-XML ServerXMLHTTP object and lets you access WinHTTP directly.

If you're trying to decide between the two components, I'd choose this method unless you have a specific reason for using the MS-XML 3 based components illustrated in our original HTTP sample.

One last note... this is only for the server-side platforms - NT/2000/XP (works on 2000 & XP Pro too). WinHTTP isn't supported on 95/98/ME.

Microsoft Links

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