celliott1997 celliott1997 - 5 months ago 20
Vb.net Question

Web Requests in UWP Apps

I am new to developing apps for the Universal Windows Platform, and am unsure on how to perform HTTP Requests.

Could someone post an example of how to perform a basic GET request to a URI in both VB.Net and JavaScript in UWP apps? This will help me to understand the basic mechanics of performing web requests.

Thanks.

Answer

Check the documentation, there you can see the behaviour of that component

Take a lok on this:

    public async Task DoRequest()
    {
        var client = new HttpClient();
        var response = await client.GetAsync("http://wwww.bing.com");
    }