One month down in 2025: How are your resolutions coming along? Check out how to get back on track here.
Forum Discussion
padee06
4 years agoNew member | Level 2
Uploading and downloading from dropbox always get curl: (6) Could not resolve host: \
Hi I'm using the lines from the example posted in this community
curl64.exe -X POST https://content.dropboxapi.com/2/files/download \
--header "Authorization: Bearer xxxxx" \
--header "Dropbox-API-Arg: {\"path\": \"/Aplicaciones/sample.zip\"}" \
--header "Content-Type: application/octet-stream" \ -o"c:/temp/sample.zip"
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 5920k 100 5920k 0 0 3829k 0 0:00:01 0:00:01 --:--:-- 3829k
curl: (6) Could not resolve host: \
curl: (6) Could not resolve host: \
curl: (6) Could not resolve host: \
curl: (6) Could not resolve host: \
But when i check dropbox.com file are downloading and uploading without problems.
What could be the problem? I'm trying to use the output in order to check if the result were successful or not.!
Thanks
George
- Greg-DB
Dropbox Staff
Your curl client appears to be trying to interpret each "\" character as a separate host, when those are supposed to just be characters to continue the command on a new line.
I don't know exactly what shell you're using, but for the sake of simplicity you can take out the "\" characters and new lines, so the entire command is on one unbroken line, to try to get this working in your environment.
- Jorge M.16New member | Level 2Thanks Greg!! It work fine!!.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,949 PostsLatest Activity: 3 hours ago
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!