Skip to content

Instantly share code, notes, and snippets.

@redmcg
Created Nov 12, 2018
Embed
What would you like to do?
Simple Web Request test (fails under Wine with dotnet install and IPv6 disabled)
using System;
using System.Net;
public class WRTest
{
public static void Main ()
{
WebRequest req = WebRequest.Create("http://www.google.com");
HttpWebResponse resp = (HttpWebResponse) req.GetResponse();
Console.WriteLine(resp.StatusDescription);
resp.Close();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment