Send An HTTP Request | C libcurl Library Introduction

Поделиться
HTML-код
  • Опубликовано: 13 сен 2024
  • An introduction to using the libcurl library to send an HTTP request in C. Source code: github.com/por.... Check out www.portfolioc... to build a portfolio that will impress employers!
    libcurl Library official website: curl.se/libcurl/

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

  • @Phenomenal7
    @Phenomenal7 Год назад +3

    Finally it's here ,C for networking I've been looking forward to this.
    Thank you so much for this 🙌

    • @PortfolioCourses
      @PortfolioCourses  Год назад +1

      You're very welcome, I'm hoping to make more videos on network programming in C! :-)

  • @starc0w
    @starc0w Год назад +7

    Great tutorial! Thank you very much!

    • @PortfolioCourses
      @PortfolioCourses  Год назад +2

      You're very welcome, I'm glad you enjoyed it, and thank you so much for the super thanks! :-)

    • @kar486
      @kar486 8 месяцев назад

      how to run curl library code .in vs code
      @@PortfolioCourses

  • @lehisluguer9300
    @lehisluguer9300 2 месяца назад

    great tutorial as always :D ... im wondering if i can use this lib on my C++ projects?

    • @PortfolioCourses
      @PortfolioCourses  2 месяца назад +1

      Yes though there are other libraries for C++ specifically: github.com/yhirose/cpp-httplib

  • @dobcs3236
    @dobcs3236 8 месяцев назад

    thank you very much 👍

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

    You never disappoint me

  • @peterhans8788
    @peterhans8788 Год назад +1

    Thank you for the video.
    I am using Debian and the library is uknown.
    I downloaded and moved it to the location of the c file.
    The linker throws errors.. Do you know how to implement an external library like a professional 🙂?

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

      Hi Peter, there is usually a way to use a package manage to install things like this instead of doing it "manually". The debian page lists this:
      wiki.debian.org/deb
      Which recommends this package manager:
      wiki.debian.org/Aptitude
      Maybe I can make a video talking about these topics one day. The issue is there's lots of package managers, though maybe I can pick a popular one or something and talk about it. :-)

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

      @@PortfolioCourses
      That would be wonderful if you could make a video about package managers! Appreciate it :)

  • @0x54dotexe
    @0x54dotexe 9 месяцев назад

    please make a video of how to send email to a friend telling him Hello for example using this library

  • @Amaru1111
    @Amaru1111 5 месяцев назад +1

    Fucking amazing

  • @tamoghnabhaduri530
    @tamoghnabhaduri530 7 месяцев назад

    But is it used anywhere?? I dont know.

    • @PortfolioCourses
      @PortfolioCourses  7 месяцев назад

      Yes, the project has 6.2k forks and 33k stars on GitHub for example: github.com/curl/curl

    • @amj864
      @amj864 4 месяца назад

      libcurl is installed default on most platforms.

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

    Thanks

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

    I guess it would be a good idea to pass it to memory before writing to file, to avoid write//file error aka as a safety like a temp file?

    • @PortfolioCourses
      @PortfolioCourses  Год назад +2

      I didn’t think about that, but that’s true, if it’s in memory you could handle an error writing to a file. If you just redirect stdout, then you can’t do much if there’s a problem writing to the file.

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

    😮

  • @sohagali6252
    @sohagali6252 9 месяцев назад

    Game

  • @jondo-vh8tx
    @jondo-vh8tx 8 месяцев назад

    python: import requests req=request.get("url") vs your 60 line of code . why is c++ so complicated for nothing?

    • @PortfolioCourses
      @PortfolioCourses  8 месяцев назад +1

      Hahaha I feel this, that’s why I love Python. :-) I still love C for seeing how things work “under the hood”.

    • @jondo-vh8tx
      @jondo-vh8tx 8 месяцев назад

      @@PortfolioCourses :D amazing. i mean im like what am i missing, everyone else in here is so happy about the vid, when i cactualy know another language making the same issue lots and lots easier just by runing two lines of code. im a new beginner in the c++ world and sometimes i think we make stuff harder....in this case i would have use the normal library and using curl with system command system and i bet it would work!? :D

    • @realElzie
      @realElzie 6 месяцев назад

      I am working on a project for college and we have to use C++ to do web scraping because C++ is more secure to run on servers than Python. If I could use Python then I would, but I am very glad this library exists. Also, C and C++ are much faster than Python as an added bonus.

    • @jondo-vh8tx
      @jondo-vh8tx 6 месяцев назад +2

      @@realElzie indeed. im learning c++ but jisses its not easy :D . why you do web scarping your gangstah ;)

    • @AlameenAdeyemi
      @AlameenAdeyemi 4 месяца назад +1

      U cant understand 😌