<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Programmatically download a shared file using C++ Curl in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Programmatically-download-a-shared-file-using-C-Curl/m-p/389539#M21582</link>
    <description>&lt;P&gt;Below is the code I use:&lt;/P&gt;&lt;P&gt;#include "Stdafx.h"&lt;BR /&gt;#include "curl.h"&lt;BR /&gt;#include "Download.h"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;static const char* FileURL[] = {&lt;BR /&gt;"&lt;A href="https://www.dropbox.com/s/9thz78bwfeykqra/version.dat?dl=0" target="_blank" rel="noopener"&gt;https://www.dropbox.com/s/9thz78bwfeykqra/version.dat?dl=0&lt;/A&gt;" ,&lt;BR /&gt;"&lt;A href="https://www.dropbox.com/s/9thz78bwfeykqra/version.dat?dl=1" target="_blank" rel="noopener"&gt;https://www.dropbox.com/s/9thz78bwfeykqra/version.dat?dl=1&lt;/A&gt;"&lt;BR /&gt;} ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;static size_t write_data (void *ptr,size_t size,size_t nmemb,void* stream)&lt;BR /&gt;{&lt;BR /&gt;size_t written = fwrite (ptr,size,nmemb,(FILE * ) stream) ;&lt;BR /&gt;return written ;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;int DownloadFile ()&lt;BR /&gt;{&lt;BR /&gt;static char TargetURL[] = "E:\\Download\\DownloadURL\\Test.dat" ;&lt;BR /&gt;static char TargetCURL[] = "E:\\Download\\DownloadCURL\\Test.dat" ;&lt;/P&gt;&lt;P&gt;// Download the file using windows function into DownloadURL folder&lt;BR /&gt;URLDownloadToFile (nullptr,FileURL[1],TargetURL,0,nullptr) ;&lt;/P&gt;&lt;P&gt;// Download the file using curl library into DownloadCURL folder&lt;BR /&gt;if (auto curl = curl_easy_init ()) {&lt;BR /&gt;auto fp = fopen (TargetCURL,"wb") ;&lt;BR /&gt;curl_easy_setopt (curl,CURLOPT_URL,FileURL[1]) ;&lt;BR /&gt;curl_easy_setopt (curl,CURLOPT_WRITEFUNCTION,write_data) ;&lt;BR /&gt;curl_easy_setopt (curl,CURLOPT_FOLLOWLOCATION,1) ;&lt;BR /&gt;curl_easy_setopt (curl,CURLOPT_FAILONERROR,1) ;&lt;BR /&gt;curl_easy_setopt (curl,CURLOPT_WRITEDATA,fp) ;&lt;BR /&gt;curl_easy_setopt (curl,CURLOPT_HTTPPROXYTUNNEL,1) ;&lt;/P&gt;&lt;P&gt;/* Perform the request, res will get the return code */&lt;BR /&gt;auto res = curl_easy_perform (curl) ;&lt;/P&gt;&lt;P&gt;fclose (fp) ;&lt;BR /&gt;curl_easy_cleanup (curl) ;&lt;BR /&gt;} /* if (auto curl = curl_easy_init ()) */&lt;/P&gt;&lt;P&gt;return true ;&lt;/P&gt;&lt;P&gt;} /* Download */&lt;/P&gt;&lt;P&gt;The original link is FileURL[0] and the modified link is FileURL[1]&lt;/P&gt;&lt;P&gt;The downloaded file with Curl library, and original link, is an html the opens a web page for downloading the file. If I typed the shared link into the address bar in my browser, I get same page.&lt;/P&gt;&lt;P&gt;When I download the modified link, both windows function and Curl library download nothing. Curl function&amp;nbsp;curl_easy_perform () returns : (6) CURL_COULDNT_RESOLVE_HOST.&lt;/P&gt;&lt;P&gt;would you like to inspect the html files I get with original link, Because they may have some information that I can not read.&lt;/P&gt;&lt;P&gt;Thank for your help.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 14 Jan 2020 20:42:33 GMT</pubDate>
    <dc:creator>Makhlouf</dc:creator>
    <dc:date>2020-01-14T20:42:33Z</dc:date>
    <item>
      <title>Programmatically download a shared file using C++ Curl</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Programmatically-download-a-shared-file-using-C-Curl/m-p/389500#M21578</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I developped an aplication in C++ that runs on Windows. I am trying to add a feauture in the program to download a shared file from my dropbox folder. I would like the downloading to go in background in similar way to windows API URLDownloadToFile(). The windows function downloads files from the web. But when I use the dropbox file link, the function downloads an html file instead of my file. I tried to use CURL library but got stuck with the access_token. I created an application access_token as described by Dropbox developper guide. When I use this access_token I receive authorization faliure error message. I wonder if the job I am trying to do is actually doable, and whether my approach is the right one. Where should I go or what should I do to get a shared file downloaded with my windows application.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your help&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jan 2020 19:43:01 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Programmatically-download-a-shared-file-using-C-Curl/m-p/389500#M21578</guid>
      <dc:creator>Makhlouf</dc:creator>
      <dc:date>2020-01-14T19:43:01Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically download a shared file using C++ Curl</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Programmatically-download-a-shared-file-using-C-Curl/m-p/389513#M21579</link>
      <description>&lt;P&gt;You can download a file from a shared link directly without using an access token, like you tried initially. Note that by default however,&amp;nbsp;Dropbox shared links point to an HTML preview page, not the file data itself. You can modify the link to point to the file data though, as described here:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.dropbox.com/files-folders/share/force-download" target="_blank"&gt;https://help.dropbox.com/files-folders/share/force-download&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jan 2020 19:20:09 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Programmatically-download-a-shared-file-using-C-Curl/m-p/389513#M21579</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-01-14T19:20:09Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically download a shared file using C++ Curl</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Programmatically-download-a-shared-file-using-C-Curl/m-p/389525#M21580</link>
      <description>&lt;P&gt;Thanks for your answer. I read this article and tried it but did not work. Here is my observations:&lt;/P&gt;&lt;P&gt;1- If I leave the shared link as it is, curl will download an html file which when opened in a browser I get the below screen.&lt;/P&gt;&lt;P&gt;2- If I chose to skip sign in, I can not download teh file.&lt;/P&gt;&lt;P&gt;3- If I modified the shared link with dl=1 instead of dl=0, I receive nothing.&lt;/P&gt;&lt;P&gt;4- Windows function URLDownloadToFile() download an html file using the original link also. However, it can not be open in the browser. It seems it has error message but I can not read html to find out the problem.&lt;IMG title="Screenshot (42).png" alt="Screenshot (42).png" src="https://www.dropboxforum.com/t5/image/serverpage/image-id/13258i59D25FD0BA884CBA/image-size/original?v=1.0&amp;amp;px=-1" border="0" /&gt;&lt;/P&gt;&lt;P&gt;I am not quite sure what I am doing wrong. Please advise.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jan 2020 20:04:18 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Programmatically-download-a-shared-file-using-C-Curl/m-p/389525#M21580</guid>
      <dc:creator>Makhlouf</dc:creator>
      <dc:date>2020-01-14T20:04:18Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically download a shared file using C++ Curl</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Programmatically-download-a-shared-file-using-C-Curl/m-p/389527#M21581</link>
      <description>&lt;P&gt;I'm not sure I follow. Can you share your code and whatever error/output you're getting when you try to download from a shared link with dl=1?&amp;nbsp;Thanks in advance!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jan 2020 20:07:17 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Programmatically-download-a-shared-file-using-C-Curl/m-p/389527#M21581</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-01-14T20:07:17Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically download a shared file using C++ Curl</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Programmatically-download-a-shared-file-using-C-Curl/m-p/389539#M21582</link>
      <description>&lt;P&gt;Below is the code I use:&lt;/P&gt;&lt;P&gt;#include "Stdafx.h"&lt;BR /&gt;#include "curl.h"&lt;BR /&gt;#include "Download.h"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;static const char* FileURL[] = {&lt;BR /&gt;"&lt;A href="https://www.dropbox.com/s/9thz78bwfeykqra/version.dat?dl=0" target="_blank" rel="noopener"&gt;https://www.dropbox.com/s/9thz78bwfeykqra/version.dat?dl=0&lt;/A&gt;" ,&lt;BR /&gt;"&lt;A href="https://www.dropbox.com/s/9thz78bwfeykqra/version.dat?dl=1" target="_blank" rel="noopener"&gt;https://www.dropbox.com/s/9thz78bwfeykqra/version.dat?dl=1&lt;/A&gt;"&lt;BR /&gt;} ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;static size_t write_data (void *ptr,size_t size,size_t nmemb,void* stream)&lt;BR /&gt;{&lt;BR /&gt;size_t written = fwrite (ptr,size,nmemb,(FILE * ) stream) ;&lt;BR /&gt;return written ;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;int DownloadFile ()&lt;BR /&gt;{&lt;BR /&gt;static char TargetURL[] = "E:\\Download\\DownloadURL\\Test.dat" ;&lt;BR /&gt;static char TargetCURL[] = "E:\\Download\\DownloadCURL\\Test.dat" ;&lt;/P&gt;&lt;P&gt;// Download the file using windows function into DownloadURL folder&lt;BR /&gt;URLDownloadToFile (nullptr,FileURL[1],TargetURL,0,nullptr) ;&lt;/P&gt;&lt;P&gt;// Download the file using curl library into DownloadCURL folder&lt;BR /&gt;if (auto curl = curl_easy_init ()) {&lt;BR /&gt;auto fp = fopen (TargetCURL,"wb") ;&lt;BR /&gt;curl_easy_setopt (curl,CURLOPT_URL,FileURL[1]) ;&lt;BR /&gt;curl_easy_setopt (curl,CURLOPT_WRITEFUNCTION,write_data) ;&lt;BR /&gt;curl_easy_setopt (curl,CURLOPT_FOLLOWLOCATION,1) ;&lt;BR /&gt;curl_easy_setopt (curl,CURLOPT_FAILONERROR,1) ;&lt;BR /&gt;curl_easy_setopt (curl,CURLOPT_WRITEDATA,fp) ;&lt;BR /&gt;curl_easy_setopt (curl,CURLOPT_HTTPPROXYTUNNEL,1) ;&lt;/P&gt;&lt;P&gt;/* Perform the request, res will get the return code */&lt;BR /&gt;auto res = curl_easy_perform (curl) ;&lt;/P&gt;&lt;P&gt;fclose (fp) ;&lt;BR /&gt;curl_easy_cleanup (curl) ;&lt;BR /&gt;} /* if (auto curl = curl_easy_init ()) */&lt;/P&gt;&lt;P&gt;return true ;&lt;/P&gt;&lt;P&gt;} /* Download */&lt;/P&gt;&lt;P&gt;The original link is FileURL[0] and the modified link is FileURL[1]&lt;/P&gt;&lt;P&gt;The downloaded file with Curl library, and original link, is an html the opens a web page for downloading the file. If I typed the shared link into the address bar in my browser, I get same page.&lt;/P&gt;&lt;P&gt;When I download the modified link, both windows function and Curl library download nothing. Curl function&amp;nbsp;curl_easy_perform () returns : (6) CURL_COULDNT_RESOLVE_HOST.&lt;/P&gt;&lt;P&gt;would you like to inspect the html files I get with original link, Because they may have some information that I can not read.&lt;/P&gt;&lt;P&gt;Thank for your help.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jan 2020 20:42:33 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Programmatically-download-a-shared-file-using-C-Curl/m-p/389539#M21582</guid>
      <dc:creator>Makhlouf</dc:creator>
      <dc:date>2020-01-14T20:42:33Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically download a shared file using C++ Curl</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Programmatically-download-a-shared-file-using-C-Curl/m-p/389552#M21583</link>
      <description>&lt;P&gt;There are a few things that I notice that you may want to address:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;You should get rid of the "dl=0" URL, since that's not expected to work. (It is supposed to return an HTML page, which isn't what you want.)&lt;/LI&gt;
&lt;LI&gt;You're attempting to use both 'URLDownloadToFile' and 'curl', but you only need one. You should probably just decide on one and remove the other. (Personally, I'd just use 'curl' since it's more configurable.)&lt;/LI&gt;
&lt;LI&gt;You're setting '&lt;A href="https://curl.haxx.se/libcurl/c/CURLOPT_HTTPPROXYTUNNEL.html" target="_self"&gt;CURLOPT_HTTPPROXYTUNNEL&lt;/A&gt;', which tells curl to use a proxy defined by '&lt;A href="https://curl.haxx.se/libcurl/c/CURLOPT_PROXY.html" target="_self"&gt;CURLOPT_PROXY&lt;/A&gt;', but you're not setting 'CURLOPT_PROXY' that I can see. You should probably get rid of 'CURLOPT_HTTPPROXYTUNNEL', or properly set 'CURLOPT_PROXY'.&lt;/LI&gt;
&lt;LI&gt;The 'CURL_COULDNT_RESOLVE_HOST' error seems to indicate a DNS issue looking up the&amp;nbsp;Dropbox domain, but the&amp;nbsp;Dropbox domains are currently resolving properly, so you may need to check on any issues with your DNS server. It's also possible this is related to your proxy configuration, as noted above.&lt;/LI&gt;
&lt;LI&gt;Your linked "version.dat" file appears to just contain 56 bytes that don't print out anything visible. If you're trying to print that out as text, that might be the "nothing" you're referring to. You may want to try this with a different file that contains some printable text first for clarity.&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Tue, 14 Jan 2020 21:24:34 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Programmatically-download-a-shared-file-using-C-Curl/m-p/389552#M21583</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-01-14T21:24:34Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically download a shared file using C++ Curl</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Programmatically-download-a-shared-file-using-C-Curl/m-p/389568#M21584</link>
      <description>&lt;P&gt;Dear Greg,&lt;/P&gt;&lt;P&gt;Thank you for your kind support. Here is what I did:&lt;/P&gt;&lt;P&gt;1- I got rid of "dl=0" URL.&lt;/P&gt;&lt;P&gt;2- I got ride of URLDownladToFile(). I will stick to curl library.&lt;/P&gt;&lt;P&gt;3- I got ride of&amp;nbsp;curl_easy_setopt (curl,CURLOPT_HTTPPROXYTUNNEL,1) ;&lt;/P&gt;&lt;P&gt;4- I am not using any proxy.&amp;nbsp;&lt;/P&gt;&lt;P&gt;5- I still receive (6)&amp;nbsp;CURL_COULDNT_RESOLVE_HOST error.&lt;/P&gt;&lt;P&gt;6- When I say receive nothing, I mean the downloaded file size is zero byte.&lt;/P&gt;&lt;P&gt;7- I uploaded the cpp file and tried to downloaded it (1.45 KB). The downloaded file size is still zero byte.&lt;/P&gt;&lt;P&gt;Below is the new code with above changes:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;#include "Stdafx.h"&lt;BR /&gt;#include "curl.h"&lt;BR /&gt;#include "Download.h"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;static const char* FileURL =&lt;BR /&gt;"&lt;A href="https://www.dropbox.com/s/4cn3neh4omhhzr5/Download.cpp?dl=1" target="_blank" rel="noopener"&gt;https://www.dropbox.com/s/4cn3neh4omhhzr5/Download.cpp?dl=1&lt;/A&gt;" ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;static size_t write_data (void *ptr,size_t size,size_t nmemb,void* stream)&lt;BR /&gt;{&lt;BR /&gt;size_t written = fwrite (ptr,size,nmemb,(FILE * ) stream) ;&lt;BR /&gt;return written ;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;int DownloadFile ()&lt;BR /&gt;{&lt;BR /&gt;static char TargetFile[] = "E:\\Download\\DownloadCURL\\Download.cpp" ;&lt;/P&gt;&lt;P&gt;// Download the file using curl library into DownloadCURL folder&lt;BR /&gt;if (auto curl = curl_easy_init ()) {&lt;BR /&gt;auto fp = fopen (TargetFile,"wb") ;&lt;BR /&gt;curl_easy_setopt (curl,CURLOPT_URL,FileURL) ;&lt;BR /&gt;curl_easy_setopt (curl,CURLOPT_WRITEFUNCTION,write_data) ;&lt;BR /&gt;curl_easy_setopt (curl,CURLOPT_FOLLOWLOCATION,1) ;&lt;BR /&gt;curl_easy_setopt (curl,CURLOPT_FAILONERROR,1) ;&lt;BR /&gt;curl_easy_setopt (curl,CURLOPT_WRITEDATA,fp) ;&lt;/P&gt;&lt;P&gt;/* Perform the request, res will get the return code */&lt;BR /&gt;auto res = curl_easy_perform (curl) ;&lt;/P&gt;&lt;P&gt;fclose (fp) ;&lt;BR /&gt;curl_easy_cleanup (curl) ;&lt;BR /&gt;} /* if (auto curl = curl_easy_init ()) */&lt;/P&gt;&lt;P&gt;return true ;&lt;/P&gt;&lt;P&gt;} /* Download */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If everything else is correct, could it be that my curl library is not functioning properly?&lt;/P&gt;&lt;P&gt;I downloaded the source code for the library (version 7-67.0). There were many options to apply during the compilation. I once built it with OpenSSL support. Then removed the OpenSSL support following a post I read about Windows / OpenSSL compatibility.&lt;/P&gt;&lt;P&gt;So any suggestion regarding building the library will be much appreciated.&lt;/P&gt;&lt;P&gt;Thanks again for your help&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jan 2020 22:24:39 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Programmatically-download-a-shared-file-using-C-Curl/m-p/389568#M21584</guid>
      <dc:creator>Makhlouf</dc:creator>
      <dc:date>2020-01-14T22:24:39Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically download a shared file using C++ Curl</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Programmatically-download-a-shared-file-using-C-Curl/m-p/389759#M21592</link>
      <description>&lt;P&gt;Thanks, in that case the empty file isn't surprising since the call is failing, with the 'CURL_COULDNT_RESOLVE_HOST' error. I did just try it myself, and the&amp;nbsp;Dropbox domain is resolving properly for me.&lt;/P&gt;
&lt;P&gt;That error indicates a DNS issue, so you'll need to troubleshoot your DNS configuration/server. I can't offer support for your DNS server though, or curl or OpenSSL, as those are made by third parties.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jan 2020 19:10:25 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Programmatically-download-a-shared-file-using-C-Curl/m-p/389759#M21592</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-01-15T19:10:25Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically download a shared file using C++ Curl</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Programmatically-download-a-shared-file-using-C-Curl/m-p/389764#M21594</link>
      <description>&lt;P&gt;Hi &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1252239"&gt;@Makhlouf&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Did you try: &lt;A href="https://www.dropbox.com/s/9thz78bwfeykqra/version.dat?raw=1" target="_blank"&gt;https://www.dropbox.com/s/9thz78bwfeykqra/version.dat?raw=1&lt;/A&gt; in your code? &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@86FF27E33EE6AE58E01795BD66324A7F/images/emoticons/1f914.png" alt=":thinking:" title=":thinking:" /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jan 2020 19:26:15 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Programmatically-download-a-shared-file-using-C-Curl/m-p/389764#M21594</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2020-01-15T19:26:15Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically download a shared file using C++ Curl</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Programmatically-download-a-shared-file-using-C-Curl/m-p/389769#M21595</link>
      <description>&lt;P&gt;Dear Greg,&lt;BR /&gt;Thanks a lot for you help. I will investigate the curl library myself. Glad to hear it worked for you. This gives me hope to do it myself as well.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jan 2020 19:39:17 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Programmatically-download-a-shared-file-using-C-Curl/m-p/389769#M21595</guid>
      <dc:creator>Makhlouf</dc:creator>
      <dc:date>2020-01-15T19:39:17Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically download a shared file using C++ Curl</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Programmatically-download-a-shared-file-using-C-Curl/m-p/389771#M21596</link>
      <description>&lt;P&gt;Dear&amp;nbsp;Здравко,&lt;/P&gt;&lt;P&gt;Yes, I tried it and got me same error (6) CURL_COUDNT_RESOLVE_HOST.&lt;/P&gt;&lt;P&gt;There is one observation to mention here.&lt;/P&gt;&lt;P&gt;If I comment the line:&amp;nbsp;curl_easy_setopt (curl,CURLOPT_FOLLOWLOCATION,1) ; the function&amp;nbsp;curl_easy_perform () returns 0 which means no error, but the file size is 0 bytes.&lt;/P&gt;&lt;P&gt;When I decomment the above line, curl_easy_perform () returns 6. and the file size is still 0 bytes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jan 2020 19:48:56 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Programmatically-download-a-shared-file-using-C-Curl/m-p/389771#M21596</guid>
      <dc:creator>Makhlouf</dc:creator>
      <dc:date>2020-01-15T19:48:56Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically download a shared file using C++ Curl</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Programmatically-download-a-shared-file-using-C-Curl/m-p/389777#M21597</link>
      <description>&lt;P&gt;I can confirm that your code works using either "raw=1" or "dl=1" endings. Seems you have network issues. That's it. ( Of course could be done some improvements in the code, like detect and automatically save in corresponding file, accordingly named file for example &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@F55D1311E4D274BF094217A54A6087D3/images/emoticons/1f609.png" alt=":wink:" title=":wink:" /&gt; )&lt;/P&gt;&lt;P&gt;Good luck!&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jan 2020 20:17:21 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Programmatically-download-a-shared-file-using-C-Curl/m-p/389777#M21597</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2020-01-15T20:17:21Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically download a shared file using C++ Curl</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Programmatically-download-a-shared-file-using-C-Curl/m-p/389779#M21598</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1252239"&gt;@Makhlouf&lt;/a&gt;&amp;nbsp;In case it helps with your the networking troubleshooting, note that the redirects to get to the file data when using 'raw=1' or 'dl=1' also go through other&amp;nbsp;Dropbox domains that look like '*.dl.dropboxusercontent.com'.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jan 2020 20:24:54 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Programmatically-download-a-shared-file-using-C-Curl/m-p/389779#M21598</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-01-15T20:24:54Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically download a shared file using C++ Curl</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Programmatically-download-a-shared-file-using-C-Curl/m-p/389780#M21599</link>
      <description>Dear Здравко, 1- Can you advise me where I can download a libcurl.dll file that should work for me. I need to make sure whether the issue source is the network or missing option in the library. 2- Also, I could not follow you regarding the improvement you suggested to my code. What do you mean by automatically save in corresponding file. Please explain more. Thanks a lot.</description>
      <pubDate>Wed, 15 Jan 2020 20:29:52 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Programmatically-download-a-shared-file-using-C-Curl/m-p/389780#M21599</guid>
      <dc:creator>Makhlouf</dc:creator>
      <dc:date>2020-01-15T20:29:52Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically download a shared file using C++ Curl</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Programmatically-download-a-shared-file-using-C-Curl/m-p/389782#M21600</link>
      <description>&lt;P&gt;Hi &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1252239"&gt;@Makhlouf&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;All you need (including sourcing, binary and tutorials) is here: &lt;A href="https://curl.haxx.se/" target="_blank" rel="noopener"&gt;https://curl.haxx.se/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Again, Good luck!&lt;/P&gt;&lt;P&gt;ADD: As lib curl is a C library, but you are trying C++ coding, might be better take a look here:&amp;nbsp;&lt;A href="http://www.curlpp.org/" target="_blank"&gt;http://www.curlpp.org/&lt;/A&gt; also.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jan 2020 20:44:22 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Programmatically-download-a-shared-file-using-C-Curl/m-p/389782#M21600</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2020-01-15T20:44:22Z</dc:date>
    </item>
  </channel>
</rss>

