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
<%
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
View Related
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
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