You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.

Forum Discussion

padee06's avatar
padee06
New member | Level 2
4 years ago

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's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox 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.