msxml.ServerXMLHTTP send method

Results 1 to 2 of 2

Thread: msxml.ServerXMLHTTP send method

  1. #1
    Join Date
    Dec 1969

    Default msxml.ServerXMLHTTP send method

    Hi there. <BR>i&#039;m trying to post xml data to an external server from my web page. I&#039;m using the following code:<BR>Dim xmlhttp<BR>Set xmlhttp = Server.CreateObject("Msxml2.ServerXMLHTTP.4.0")<BR >xmlhttp.Open "POST", "", False<BR>xmlhttp.SetRequestHeader "Content-Type", "application/x-www-form-urlencoded"<BR>xmlhttp.Send "Text=this is a test"<BR><BR>In tester.asp I have:<BR>Response.write Request.Form("Text")<BR><BR>This works ok but all the spaces in my test string are removed. SO the out put is <BR>"thisisatest"<BR>How do i make the spaces appear?<BR>xmlhttp.Send "Text=this is a test"<BR>Set xmlhttp = Nothing<BR> <BR>

  2. #2
    Join Date
    Dec 1969

    Default RE: msxml.ServerXMLHTTP send method

    I found this looking at the URL of microsofts search facility.<BR><BR>Try xmlhttp.Send "Text=this+is+a+test"<BR><BR>It works for me.<BR><BR>Funny thing is, if in your tester.asp you wrote;<BR>response.write request.form<BR>you would get the whole query string including the spaces!<BR><BR>Weired.<BR><BR>Keith

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts