Quantcast
Channel: ASPRunner forums
Viewing all articles
Browse latest Browse all 2586

httpRequest

$
0
0
In c# I can use the code below to do a remote post to get data response. How can I do this in ASPRunner.net?

Thank you for your assistance

var httpRequest = (HttpWebRequest)WebRequest.Create("http://localhost/service.svc");
var httpRequest.Method = "POST";

using (var outputStream = httpRequest.GetRequestStream())
{
// some complicated logic to create the message
}

var response = httpRequest.GetResponse();
using (var stream = response.GetResponseStream())
{
// some complicated logic to handle the response message.
}

Viewing all articles
Browse latest Browse all 2586

Trending Articles