Quantcast
Channel: ClearScript
Viewing all articles
Browse latest Browse all 2297

New Post: How to Access a Web Service?

0
0
Hi Neil,

Since you have .NET at your disposal, why not use something like System.Net.WebClient?
engine.AddHostType("WebClient", typeof(WebClient));
engine.Execute(@"
    var client = new WebClient();
    var html = client.DownloadString('http://cnn.com');
");
Cheers!

Viewing all articles
Browse latest Browse all 2297

Latest Images

Trending Articles





Latest Images