XML Transfer

May 30th, 2012 - 08:18 pm ET by richwms | Report spam
Hello,
I am sending an xml doc from validateZip.asp using the following code:

Reg = "<ZipCodeRequest>" & vbCrLf
Reg = Reg & "<StoreName>" & storeName & "</StoreName>" & vbCrLf
Reg = Reg & "<ZipCode>" & recipZipCode & "</ZipCode>" & vbCrLf
Reg = Reg & "</ZipCodeRequest>" & vbCrLf
Set xml = Server.CreateObject("Microsoft.XMLHTTP")
xml.open "post", "http://www.samedayshopping.com/sds/...asp", False
xml.setRequestHeader "Content-Type", "text/xml; charset=utf-8"
xml.send Reg
RetVal = xml.responseText
Response.Write(RetVal)
Set xml = nothing

The receiving program ZipListener.asp parses the xml doc and uses a Response.Redirect go to another URL. Here is the code:

newURL = "http://samedayshopping.com/comersus....asp"
Response.Redirect newURL

The problem is that the URL in the address field still shows "http://www.samedayshopping.com/sds/...asp", and when I look at the properties on the final page, it shows "http://www.samedayshopping.com/sds/...asp". It should be "http://www.samedayshopping.com/come...asp". My question is why isn't it showing the correct URL?
email Follow the discussionReplies 1 replyReplies Make a reply

Replies

#1 richwms
May 30th, 2012 - 09:10 pm ET | Report spam
richwms wrote on 05/30/2012 20:18 ET :
Hello,
I am sending an xml doc from validateZip.asp using the following code:

Reg = "<ZipCodeRequest>" & vbCrLf
Reg = Reg & "<StoreName>" & storeName &
"</StoreName>" & vbCrLf
Reg = Reg & "<ZipCode>" & recipZipCode &
"</ZipCode>" & vbCrLf
Reg = Reg & "</ZipCodeRequest>" & vbCrLf
Set xml = Server.CreateObject("Microsoft.XMLHTTP")
xml.open "post",
"http://www.samedayshopping.com/sds/...asp", False
xml.setRequestHeader "Content-Type", "text/xml;
charset=utf-8"
xml.send Reg
RetVal = xml.responseText
Response.Write(RetVal)
Set xml = nothing

The receiving program ZipListener.asp parses the xml doc and uses a
Response.Redirect go to another URL. Here is the code:

newURL = "http://samedayshopping.com/comersus....asp"
Response.Redirect newURL

The problem is that the URL in the address field still shows
"http://www.samedayshopping.com/sds/...asp", and when I look
at the properties on the final page, it shows
"http://www.samedayshopping.com/sds/...asp". It should be
"http://www.samedayshopping.com/come...asp". My question is
why isn't it showing the correct URL?


This problem is solved.

Similar topics