Access and file upload to Dropbox (RAW socket)

Hello everyone.
I am trying to login and upload a file in the dropbox using command line, (RAW socket).
I'm trying to do this on the command line because it's more practical to take the test!
Faster than recording my ESP8266 with the Arduino every time I need to do a test.
I am having difficulty understanding how to do it, because I always get error from my commands.
I am using the reference:

What do I do:

I connect to the dropbox at the following address:
Server IP:
PORT: 443

I send the commands that have in the above address, to log or send file, but only returns me error, for example:


curl -X POST \
    --header "Authorization: Basic ZzB4a3BtZnUwMjVwbjhmOmtuYWdoMzl3YTc1cxxxxxxxxt" \ "
    --header "Content-Type: application / json" \
    -data "{\" oauth1_token \ ": \" g0xkpmfu025xxxx \ ", \" oauth1_token_secret \ ": \" knagh39wa75xxxx \ "}"

I get:

HTTP / 1.1 400 Bad Request
Server: nginx
Date: Thu, 03 May 2018 15:54:37 GMT
Content-Type: text / html
Connection: close
ETag: "5a7b9900-643a"
X-Dropbox-Request-Id: bd49b7d1aafce148d39e89d17e580d7f

<! DOCTYPE html>

Any command I send, I always get it! I do not understand what I'm doing wrong ....
Can someone help me?

Is there an example command for me to send to test the connection?

So this question is not related to the Arduino in anyway and you want us to help you with the Dropbox API?
Am I understanding this correctly?


If your ultimate intention is to use an ESP8266 to make an SSL/TLS connection to a web server (i.e. https://) have a look here:

and generally google for keywords esp8266 arduino client secure https ssl tls

You'll see the complexity and limitations.