0
Reply

classic asp in the post process

ramazan alic

ramazan alic

Mar 10 2016 4:20 AM
358
this is  active server page ASP 
 
 
When I post it to me , but I need that returns an XML output style applications I need to make this year the XML table . I failed somehow . I did not use many of the classic asp year . How do I apply this style ?
 
<%
Option Explicit

Dim data,data_id, data_firma, data_user, data_pwd, httpRequest, postResponse,tarih,plaka,enlem,boylam

Response.ContentType = "text/xml"
Response.AddHeader "Content-Type", "text/xml;charset=UTF-8"
Response.CodePage = 65001
Response.CharSet = "UTF-8"



data_user = "******"
data_pwd = "******"
data_id=Request.QueryString("plaka")

data = "usr=" & data_user & "&pwd=" & data_pwd

Set httpRequest = Server.CreateObject("msxml2.serverxmlhttp.6.0")
httpRequest.async = False
httpRequest.setProperty "ServerHTTPRequest", True
httpRequest.Open "POST", "postet.asp", False
httpRequest.SetRequestHeader "Content-Type", "application/x-www-form-urlencoded"
httpRequest.Send data

response.Write httpRequest.responseText

%>