Skip to content
zixing edited this page May 10, 2021 · 3 revisions
var client = new HttpClient();
client.Request.Uri = "http://www.baidu.com";
client.Request.Method = HttpMethod.OPTIONS;
var httpWebRequest = client.Request.PrepareRequest();
HttpResponse httpResponse = new HttpResponse();
httpResponse.GetResponse(httpWebRequest, "", false);
Clone this wiki locally