HOWTO Post to a URL from Server Side ASP script.

A

ATS

HOWTO Post to a URL from Server Side ASP script.

Please help,

I'm trying to make a simple ASP page post to a URL on a seperate web site,
and then get the returned HTML into a string which on service side script I
can then parse. Is there any object built into IIS or Microsoft I could use
Server.CreateObject with to make this possible?
 
A

Anthony Jones

ATS said:
HOWTO Post to a URL from Server Side ASP script.

Please help,

I'm trying to make a simple ASP page post to a URL on a seperate web site,
and then get the returned HTML into a string which on service side script I
can then parse. Is there any object built into IIS or Microsoft I could use
Server.CreateObject with to make this possible?

Research the "MSXML2.ServerXMLHTTP" object.
 
B

Bob Barrows [MVP]

ATS said:
HOWTO Post to a URL from Server Side ASP script.

Please help,

I'm trying to make a simple ASP page post to a URL on a seperate web
site, and then get the returned HTML into a string which on service
side script I can then parse. Is there any object built into IIS or
Microsoft I could use Server.CreateObject with to make this possible?
http://www.aspfaq.com/show.asp?id=2173
 
C

cc900630

Hi is it possible to dio this on sites using windows authentication.
Using teh method below I get this error.

HTTP 401.2 - Unauthorized: Logon failed due to server configuration
Internet Information Services

--------------------------------------------------------------------------------

Technical Information (for support personnel)

Background:
This is usually caused by a server-side script not sending the proper
WWW-Authenticate header field. Using Active Server Pages scripting this
is done by using the AddHeader method of the Response object to request
that the client use a certain authentication method to access the
resource.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,263
Messages
2,571,062
Members
48,769
Latest member
Clifft

Latest Threads

Top