About 22,500,000 results
Open links in new tab
  1. WebRequest.Create Method (System.Net) | Microsoft Learn

    For example, if you create a WebRequest descendant, Handler1, to handle requests to http://www.contoso.com/text/ and another named Handler2 to handle requests to …

  2. c# - 'WebRequest.Create (string)' is obsolete: 'WebRequest, Use ...

    Mar 21, 2022 · I upgraded my .NET application from the version NET5 to NET6 and placed with a warning that the WebRequest class was obsolete. I've looked at a few examples online, but using …

  3. Type: System.Net.WebRequest

    The WebRequest.Create method returns a descendant of the WebRequest class determined at run time by the scheme of the URI in requestUri. For example, when a URI beginning with http:// is passed in …

  4. API call using X++ in D365 FO - thiscodeWorks

    Sep 2, 2024 · The WinHttp class is part of the System.Net namespace. Here is an example of how to use the WinHttp class to make a POST request: In this example, we create a HttpWebRequest …

  5. WebRequest Class (System.Net) | Microsoft Learn

    Because the WebRequest class is an abstract class, the actual behavior of WebRequest instances at run time is determined by the descendant class returned by Create method.

  6. c# - ASP.NET Core - How to resolve 'WebRequest.Create (string)' is ...

    Apr 20, 2023 · The warning message suggests that you should use HttpClient instead of WebRequest. The following method uses HttpClient to make a POST request to the specified url.

  7. WebRequest.CreateHttp Method (System.Net) | Microsoft Learn

    Custom WebRequest descendants to handle other requests are registered with the RegisterPrefix method. The Create (String) method can be used to create a descendant of the WebRequest class …

  8. asp.net - How to create a request to a URL and write the response to ...

    Mar 22, 2012 · I believe I've done this before, but I can't seem to remember how: ( HttpWebRequest request = (HttpWebRequest)WebRequest.Create ("www.example.com"); request.Method = "GET";

  9. HttpWebRequest Class (System.Net) | Microsoft Learn

    Use the WebRequest.Create method to initialize new HttpWebRequest objects. If the scheme for the Uniform Resource Identifier (URI) is http:// or https://, Create returns an HttpWebRequest object.

  10. WebRequest, WebClient, and ServicePoint are obsolete

    Nov 7, 2024 · Starting in .NET 6, the WebRequest, WebClient, and ServicePoint classes are deprecated. The classes are still available, but they're not recommended for new development. To …