❔ I need help Webclient error

Am I missing a component or something?
11 Replies
Thinker
Thinker2y ago
Don't use WebClient. Use HttpClient. Unless you're doing something very weird.
wearelivingart
wearelivingartOP2y ago
Oh, Is it the same code like Httpclient update check = yk
Thinker
Thinker2y ago
kinda
wearelivingart
wearelivingartOP2y ago
Oh.
Thinker
Thinker2y 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
wearelivingartOP2y ago
Oh, So I put the Http link in the "()"
Thinker
Thinker2y ago
yep
wearelivingart
wearelivingartOP2y ago
Thanks.
MODiX
MODiX2y 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
wearelivingartOP2y ago
Thank you.
Accord
Accord2y 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.
Want results from more Discord servers?
Add your server