Msxml2.ServerXMLHTTP

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • bo0oost

    #1

    Msxml2.ServerXMLHTTP


    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

Working...