❔ I need help Webclient error

Am I missing a component or something?
11 Replies
Thinker
Thinker15mo ago
Don't use WebClient. Use HttpClient. Unless you're doing something very weird.
wearelivingart
wearelivingart15mo ago
Oh, Is it the same code like Httpclient update check = yk
Thinker
Thinker15mo ago
kinda
wearelivingart
wearelivingart15mo ago
Oh.
Thinker
Thinker15mo ago
HttpClient client = new();
var response = await client.GetAsync(url);
var content = await Response.Content.ReadAsStringAsync();
HttpClient client = new();
var response = await client.GetAsync(url);
var content = await Response.Content.ReadAsStringAsync();
wearelivingart
wearelivingart15mo ago
Oh, So I put the Http link in the "()"
Thinker
Thinker15mo ago
yep
wearelivingart
wearelivingart15mo ago
Thanks.
MODiX
MODiX15mo ago
Class: System.Net.Http.HttpClient Provides a class for sending HTTP requests and receiving HTTP responses from a resource identified by a URI. Class: System.Web.HttpClientCertificate Provides the client certificate fields issued by the client in response to the server's request for the client's identity. Class: System.Net.Http.HttpClientHandler The default message handler used by HttpClient in .NET Framework and .NET Core 2.0 and earlier. 3/25 results shown ~ Click Here for more results
React with ❌ to remove this embed.
wearelivingart
wearelivingart15mo ago
Thank you.
Accord
Accord15mo ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.