C# Tutorial: Http Client

Поделиться
HTML-код
  • Опубликовано: 26 авг 2024
  • In this lesson I go over http client and how to use it.

Комментарии • 29

  • @simonroyjonesuk
    @simonroyjonesuk Год назад

    Perfect and straightforward. Will watch more. Thanks

  • @twotime5430
    @twotime5430 4 года назад +4

    Finally!! Something simple and understandable. Thanks!!

  • @orcodrilo
    @orcodrilo 4 года назад +4

    Thank you for posting this, your example is clear, direct and short. It helped me a lot.

    • @landynkaden2071
      @landynkaden2071 3 года назад

      I guess Im pretty off topic but does anybody know of a good place to watch newly released tv shows online?

    • @beaujerry6089
      @beaujerry6089 3 года назад

      @Landyn Kaden Flixportal =)

    • @landynkaden2071
      @landynkaden2071 3 года назад

      @Beau Jerry thank you, signed up and it seems to work :) I appreciate it !!

    • @beaujerry6089
      @beaujerry6089 3 года назад

      @Landyn Kaden You are welcome xD

  • @slartibartfast42
    @slartibartfast42 4 года назад +6

    Nice simple example. Shows me the basics of HttpClient and also how to make a console application async. Is there a part 2 where you store the response in a class?

    • @ianschoenrock2285
      @ianschoenrock2285  4 года назад

      Yes sir here is the link: ruclips.net/video/xkB-cIMjXGQ/видео.html

  • @stitxhbaby5152
    @stitxhbaby5152 4 года назад +5

    keep this shit going g, really helpful

  • @mohamedhussein9679
    @mohamedhussein9679 2 года назад

    Thanks Ian, very helpful.

  • @gabrielpena5829
    @gabrielpena5829 2 года назад

    Finally a nice video, thank you

  • @SosoGoqwana
    @SosoGoqwana 3 года назад

    thank goodness for this video

  • @lasong282
    @lasong282 3 года назад

    It very good to see and clear

  • @-Laharithalla
    @-Laharithalla Год назад +1

    Supper sir.. how can I include header parameters with key and value in the code

  • @christophermartinez1769
    @christophermartinez1769 3 года назад

    Works like a charm!

  • @schnicification
    @schnicification 4 года назад

    Thank you for the help.

  • @nexigen2609
    @nexigen2609 4 года назад +2

    Great tutorial! I have a question though. I'm looking to authenticate when making a GET call to an API. I'll need to include a key, a secret and a nonce. is it also possible to add these to an API URL?

    • @ianschoenrock2285
      @ianschoenrock2285  4 года назад +2

      Yes, if those are Query string parameters then you can add them to the URL. Check the documentation of the API you are trying to hit to make sure.

  • @animeboy93
    @animeboy93 11 месяцев назад

    You are in the same class. You do not need to create a new Program object inside of the Program class.

  • @michaelo1676
    @michaelo1676 3 года назад

    @ Ian:
    Thanks for the great video! Question though - can you also put the HttpClient object initialization within the async GetToDoItems() Method? Would that be a better place to put the class declartaion of HttpClient since it only lives within that scope?

    • @shunpaw820
      @shunpaw820 3 года назад

      No, you initialize the HttpClient where he did. Otherwise it can cause errors, according to the docs.

  • @johnnymeyer5815
    @johnnymeyer5815 2 года назад

    it doesn't run for me something to do with program

  • @kevinroyer3472
    @kevinroyer3472 3 года назад

    Anybody else getting a response only some of the time when running the application?

  • @attilavarkonyi7066
    @attilavarkonyi7066 4 года назад

    Why do you need to make this app async?

    • @ianschoenrock2285
      @ianschoenrock2285  4 года назад +4

      Thats a good question. The main reason why is so that we can tell our code to wait while it performs a function. In this case it is getting data from the internet and since we don't know how long that will take, we want to make sure our code waits long enough for it to get the result. For more info check out this link, it goes over it very well: docs.microsoft.com/en-us/dotnet/csharp/programming-guide/concepts/async/

    • @attilavarkonyi7066
      @attilavarkonyi7066 4 года назад

      @@ianschoenrock2285 Thank you!

  • @qwerty-yf5nl
    @qwerty-yf5nl 3 года назад +1

    Too many mistakes