cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
We've been busy working on some major updates to the Community, so check out what's changing, what’s staying the same and what you can expect from the Dropbox Community right here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Uploading and downloading from dropbox always get curl: (6) Could not resolve host: \

Uploading and downloading from dropbox always get curl: (6) Could not resolve host: \

padee06
New member | Level 2

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

2 Replies 2

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.16
New member | Level 2
Thanks Greg!! It work fine!!.
 

 

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Jorge M.16 New member | Level 2
  • User avatar
    Greg-DB Dropbox Staff
What do Dropbox user levels mean?