Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
lucasromeiro
8 years agoExplorer | Level 3
Access and file upload using command line (RAW socket)
Hello everyone. I am trying to login and upar a file in the dropbox using command line, (RAW socket). I am having difficulty understanding how to do it, because I always get error from my commands....
Greg-DB
Dropbox Community Moderator
8 years ago[Cross-linking for reference: https://stackoverflow.com/questions/50185625/upload-file-to-dropbox-by-terminal-command-line#50185625 ]
lucasromeiro I see that you also posted on six other old/unrelated threads about this. We're happy to have you on the forum to engage with us an other developers, but please refrain from spamming duplicate comments like this. I've removed your other comments on those threads, and we'll continue to help you here.
Anyway, I don't see anything obviously wrong with your latest get_current_account code. I recommend adding the --verbose flag to curl so you can get more output.
lucasromeiro
8 years agoExplorer | Level 3
Olá!!
Eu enviei os comentarios em topicos que eram relacionados. Percebi que algumas pessoas estavam com alguma semelhanca com minha duvida. Pedi ajuda para elas... Não sabia que isso era errado. Me desculpe.
Pois e, o comando está certo! Eu não entendo porque em lugar nenhum consigo fazer ele funcionar, ja tentei usar varios programas, ja tentei sites etc... Mas não funciona...
Olha a resposta acima, eu explico mais.
Será que estou tentando conectar no endereco errado? algum argunto errado ou faltando??
Sobre o --verbose. como posso inserir?
Todos os codigos que testo retornam o mesmo erro...
Tenta por eles em: https://onlinecurl.com/
Ou tenta enviar via socket...
Sempre recebo algo como:
HTTP/1.1 400 Bad Request
Server: nginx
Date: Tue, 08 May 2018 21:27:40 GMT
Content-Type: text/html
Content-Length: 25658
Connection: close
ETag: "5a7b9900-643a"
X-Dropbox-Request-Id: 71492938f986f1cc2fdcab1000320cc8
<!DOCTYPE html>
<html>
<head><meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Dropbox - 4xx</title>
<link href="https://cfl.dropboxstatic.com/static/css/error.css" rel="stylesheet" type="text/css"/>
<link rel="shortcut icon" href="https://cfl.dropboxstatic.com/static/images/favicon.ico"/>
- chirstius8 years ago
Dropbox Staff
If you are sending this over a raw socket then the curl commands won't work directly, they will show you what you need to send, but if you're truly at the level of raw sockets you need to implement the HTTP protocol yourself directly. Sending the literal curl command text down the socket to the Dropbox API server will not work. Explaining how to implement HTTP over a socket is outside the scope of support we can provide on this forum so I will not be able to help you there.
Perhaps you can find a simple/lightweight HTTP library for arduino that you can install, or that is present by default, to make this easier. But if not, I do know there are several samples available by searching for "arduino http post"
-Chuck
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
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, Facebook or Instagram.
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!