libcurl video tutorial: simplest

แชร์
ฝัง
  • เผยแพร่เมื่อ 23 ธ.ค. 2024
  • This is the "simplest" episode of the libcurl video tutorials. Do the first basic libcurl application that downloads a HTTPS URL and sends the content to stdout. All files shown are available at the link.
    See bagder.github....

ความคิดเห็น • 21

  • @clayton3518
    @clayton3518 2 ปีที่แล้ว +3

    I love using libcurl on c++, but till now i have no idea how to link it statically. It gives hundreds of errors.

  • @s_e_t_z3248
    @s_e_t_z3248 2 ปีที่แล้ว

    this is EXACTLY what I needed. Thank you.

  • @thisisreallyme3130
    @thisisreallyme3130 ปีที่แล้ว

    Nice and to the point, thank you. I appreciate how you are voicing the code AND where it is (ie global vars at 1:02). SUGGESTION: Please increase your font size for code, so it is more comfortable to read when watching your video on a smaller laptop or tablet. Cheers

  • @bushraw66
    @bushraw66 7 หลายเดือนก่อน

    I'm getting the following error: SSL peer certificate or SSH remote key was not OK.
    do you have a recommendation on how to tackle this problem in a secure way, I'm running on Windows, DEVC++ compiler app

  • @happymatekenya394
    @happymatekenya394 ปีที่แล้ว

    How can I use libcurl to get info about distance from new york to london?

    • @DanielStenberg
      @DanielStenberg  ปีที่แล้ว +1

      You find an API somewhere that you can ask, then setup libcurl to query that API.

  • @kentjordan4658
    @kentjordan4658 4 ปีที่แล้ว +1

    how can I use cURL library?

    • @DanielStenberg
      @DanielStenberg  4 ปีที่แล้ว +1

      This video takes you through the steps to make a first simple libcurl-using application!

  • @patrickaliberti8173
    @patrickaliberti8173 3 ปีที่แล้ว +1

    my res variable returns the error instead of the HTML file. Can somebody help me understand why? My code is the exact same as shown in the video.

    • @DanielStenberg
      @DanielStenberg  3 ปีที่แล้ว

      Then check the error code and read up on what it means!

  • @raypunn
    @raypunn 2 ปีที่แล้ว

    how can i use curl to login to a website in c/c++ ? what are the conditions of logging to a website like what headers does it require etc.

    • @DanielStenberg
      @DanielStenberg  2 ปีที่แล้ว +1

      It totally depends on what "login" means. Usually you just have to POST your credentials, receive the cookies and then use those cookies in subsequent requests - as a "logged in" user.

  • @Lucas-rc7kl
    @Lucas-rc7kl 2 ปีที่แล้ว +1

    Hi Daniel, I'm new to programming and I'm struggling with this: when I copy this part ''char* ptr = realloc(mem->memory, mem->size + realsize + 1);'' An error like this occurs ->
    E0144 a value of type "void *" cannot be used to initialize an entity of type "char *" . Why? If it works there.

    • @DanielStenberg
      @DanielStenberg  2 ปีที่แล้ว

      build it as C code and not C++. For more, I think you should find and use a forum for C/C++ help rather than libcurl to get the basics to compile.

  • @Landofjello
    @Landofjello 4 ปีที่แล้ว

    This is the simplest...?

    • @DanielStenberg
      @DanielStenberg  4 ปีที่แล้ว +1

      Pretty much. It really is very simple and doing a HTTPS transfer can really not be done much simpler!

  • @timedate4877
    @timedate4877 2 ปีที่แล้ว

    🏅👣🤫🔥👍