Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ServerXMLHTTP ASP.Net

Status
Not open for further replies.

laker67

Programmer
Jan 18, 2004
31
US
Hi All,I do have this code in Classic ASP .I'm newbie to ASP.NET . Can anyone please let me know how to use this code in ASP.NET (VB or C#)
Code:
<%
var url="[URL unfurl="true"]http://xyz/defs.aspx";[/URL]
var xhttp = Server.CreateObject("MSXML2.ServerXMLHTTP");
xhttp.open("POST", url, false, "", "");
xhttp.setRequestHeader("Content-Type" , "application/x-[URL unfurl="true"]www-form-urlencoded");[/URL]
xhttp.send("body="+Body);
Response.write(xhttp.responseText);
%>

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top