View Single Post
  #1 (permalink)  
Old February 24th, 2012, 03:02 PM
melvik melvik is offline
Friend of Wrox
Points: 3,558, Level: 25
Points: 3,558, Level: 25 Points: 3,558, Level: 25 Points: 3,558, Level: 25
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: California, USA
Posts: 996
Thanks: 2
Thanked 11 Times in 11 Posts
Send a message via Yahoo to melvik
Lightbulb Convert classic ASP - Web API code to ASP.NET

Hi guys,

I have this classic ASP code & new in WEB API how can I do it in ASP.NET(C#)

Code:
'Create the ServerXMLHTTP object
set objXMLHTTP = Server.CreateObject( "MSXML2.ServerXMLHTTP.4.0" )
objXMLHTTP.setOption(2) = 4096
objXMLHTTP.setOption(3) = ""

'This is the location of the system
objXMLHTTP.Open "POST", "https://" & BEANSTREAM_SERVER & "/scripts/process_transaction.asp", false

'Set the HTTP header's content type
objXMLHTTP.setRequestHeader "Content-Type", "application/x-www-form-urlencoded"

'Submit the transaction request to the system server
objXMLHTTP.Send( postData )
Tnx in advance
__________________
Always,
Hovik Melkomian.