C# - Dotnet Core - How To Use - { WebClient / HttpClient } .netcore

preview_player
Показать описание
How to get a Webclient / HttpClient in dotnet core - .netcore with C# for web scrapping using Visual Code.

Please subscribe for more videos :)

NOTE: I apologize for the quality of the microphone, but nevertheless you shouldn't have too much trouble understand it.
Рекомендации по теме
Комментарии
Автор

Great guide Andrew. I'd recommend you use your phone as a microphone for now on. There's loads of apps out there for it.

Also, if you don't want to use async methods, you can force it run synchronous using .Result. See below.

public string getHTMLofPage(string url)
{
HttpClient webClient = new HttpClient();
HttpResponseMessage response =
HttpContent content = response.Content;
try
{
return
}
catch (Exception)
{
return "";
}

}

Epro
Автор

Nice video. So how do you do a POST request to an API and inject custom headers into the request using System.Net.Http?

ragtop
Автор

Hello.
Do you know how to use webClient.UploadValues(Link, pars) in Dotnet Core?

thevik
Автор

I would like to hear this but I ONLY HEAR THAT INFERNAL MUSIC.

nonyabidness
Автор

Webclient is a short way to say a client app that connects to the web. Outside of client/server, I hate to use that word client when talking about an app on your PC, and to say it is a webclient is ridiculous because it puts web first and makes you think it is some app running a server even though it says client in the name. If it says client, there is no need to say web. This word was created to create confusion and thus more sales. Decades of buzzwords that mean nothing, like "information technology". ...wtf is that? It's called DATA PROCESSING for all the newbies out there. They changed it 3 times for a total of 4 names. DP, IS (info systems), MIS (mgmt info systems), and now IT. ..."it" ...our captors have a sense of humor don't they?

jeffbeck
Автор

Advice: dont use music in tutorials, people who's interested of tutorials are mostly beginners and want to focus on what you're saying.

housameoueslati
Автор

Shitty audio quality is not benefited by the shitty music.

zyxwvutsrqponmlkh