Forum Moderators: open
i have been trying to get the contents from a webpage using MSXML2.ServerXMLHTTP . Although i had done the same in past without any issues..
but now while get a content from a page , i am getting no response.text . Have checked the status it says 200. Seems like the problem is due to character encoding .
Code i am using is
<%
strUrl="http://indiacode.nic.in/qrydisp.asp?tfnm=188712%20&tfnm2=1"
Set xmlHttp = Server.Createobject("MSXML2.ServerXMLHTTP")
xmlHttp.Open "GET", strUrl, False
xmlHttp.setRequestHeader "User-Agent", "asp httprequest"
xmlhttp.setRequestHeader "Content-type", "text/xml; charset=utf-16"
xmlHttp.Send
getHTML = xmlHttp.responseText
xmlHttp.abort()
set xmlHttp = Nothing
response.write getHTML
%>
Can u please guide me how to get the contents..
[edited by: coopster at 9:14 pm (utc) on Mar. 4, 2009]
[edit reason] removed url per TOS [webmasterworld.com] [/edit]