title: posting XML from Classic asp and write to File function
body: <p>I index.html page that post data to page1.asp
  page1.asp transform the data and Post it to Page2.asp with this function "PostTo"</p>
  
  <p>Page2.asp is suppose to:
  -write the data to data.txt with "WriteToFile"
  Problem: WriteToFile function does not write any thing in the file when call from page2
  But work when call from page1</p>
  
  <p>Any suggestion?</p>
  
  <pre><code>Function PostTo(Data, URL)
       Dim objXMLHTTP, xml
      ''# On Error Resume Next
         Set objXMLHTTP = Server.CreateObject("MSXML2.ServerXMLHTTP.3.0")
         objXMLHTTP.Open "POST", URL, False
         objXMLHTTP.setRequestHeader "Content-Type", "application/x-www-form-urlencoded"
         objXMLHTTP.Send Data
        If objXMLHTTP.readyState &lt;&gt; 4 then
        objXMLHTTP.waitForResponse 10
        End If
        If Err.Number = 0  AND objXMLHTTP.Status = 200 then
         PostTo = objXMLHTTP.responseText     
        else
         PostTo = "Failed"
        End If  
        '' # if xhttp.Status&lt;&gt;200 then err.Raise vbObjectError, , "Server returned http code " &amp; xhttp.Status    
               Set objXMLHTTP = Nothing
     End Function
  </code></pre>