WinHttp.WinHttpRequest.5.1

<%
Dim objHTTP
set objHTTP = Server.CreateObject("WinHttp.WinHttpRequest.5.1")
objHTTP.Open "post", "http://www.cricbuzz.com/livescore/data/crbz-317244147ckw06/2006/2005_06_PAK_IND/PAK_IND_FEB16/gen_commentary.html"
objHTTP.SetRequestHeader "Content-type", "text/html"
objHTTP.Send
Response.Write objHTTP.ResponseText
%>

when i execute the above code , i get the following error, "The server name or address could not be resolved". But if try to access any local fiel instead of www.cricbuzz.com, the contents are coming correctly.

View Replies


ADVERTISEMENT

WinHttpRequest

I have a simple ASP page that connects to another
server, requests a page, manipulate the results
and sends it to the client.
My problem starts when the remote server sets a
cookie with no path attribute and then redirect me
to another page. The redirection is done
automatically which is great for me but WinHttp
doesn't send the new cookie.
I discovered that WinHttp will only send that
cookie for the page it was set for. I thought no
path is like stating "path=/".
Is this expected from WinHttp and how can I solve
this problem?

View Replies View Related

WinHTTP Version 5.1

Would anyone know where I can find a copy of this.I just can't afford the MSDN subsrciption right now.

View Replies View Related

Using WinHttp With Client Sertificates

when i try to get data from site with clients sertificates with winHttp, I have a problem with result encoding (ru). Its OK with any sites without client sertificates, and its OK when i try to do it manualy with IE Code:

View Replies View Related

WinHTTP Passing Values Asp To Asp

I have the following structure,

Form page My Server 2nd server
html ---------->My.asp------->2server.asp

User can submit the form in html to myasp. In my.asp I am using winhttp to
send the form values and some additional values to the other server's asp
page without showing the user where the actual process is happenning.

I have used the samples, but I am not getting the values in the 2nd server.

How to get the values?

Note: I dont want to expose the 2nd server in Myserver.
MyServer can be from anywhere (ie. the myserver may not known by 2nd server)

Any suggestions?

View Replies View Related

Using WinHttpRequest To Send Xml Through Proxy => Access Denied

I have a proxy on the intranet, I try to send an xml to an external url, in classic asp, using WinHttp.WinHttpRequest.5.1, but I get access denied from proxy for sending the xml and also The ISA Server requires authorization to fulfill the request. Access to the Web Proxy filter is denied. Code:

View Replies View Related

Winhttprequest Posting Byte() And String In Multipart Message.

I am near to desperation as I have a million things to get a solution
for my problem. I have to post a multipart message to a url that
consists of a xml file and an binary file (pdf). Seperately the
posting words fine but when I want to create one multipart message
with both then things go wrong.

The binary file is converted and of datatype byte()
The xml file is just a string.

I don't know how to merge these two into the multipart message. I have
tried converting the binary to string and then concatenate but that
doesn't work as it seems to leave off the last part of the file and
the boundary.

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved