I'm trying to pull back a page that is dynamic. The dyanmic data has a
apostrophe in it. Everytime I pull it back, the data changes th
apostrophe to a question mark.
Any ideas?
here is my code:
Set OBjSocket = CreateObject("M sxml2.ServerXML HTTP")
'On Error Resume Next
'*** REQUEST PAGE FROM SERVER
WScript.Echo "GET " & url
OBjSocket.Open "GET", url , false
OBjSocket.setRe questHeader "Content-Type"
"applicatio n/x-www-form-urlencoded"
OBjSocket.Send
xBuffer = OBjSocket.respo nseText
Set OBjSocket = Nothing
'*** DELETE FILE IF ALREADY EXISTS
if OBjFs.FileExist s(savepath) then
OBjFs.DeleteFil e(savepath)
end if
'*** CREATE AND SAVE PAGE TO DISK
OBjFs.CreateTex tFile savepath
Set OBjF = OBjFs.GetFile(s avepath)
Set OBjTxt = OBjF.OpenAsText Stream(2, -1)
OBjTxt.Write ParsePage(xBuff er)
OBjTxt.Close
Set OBjF = Nothing
Set OBjTxt = Nothing
Any ideas
-
bo0oos
-----------------------------------------------------------------------
Posted via http://www.forum4designers.co
-----------------------------------------------------------------------
View this thread: http://www.forum4designers.com/message69434.htm