Hi,
Our developer call API to upload file to Dropbox "https://content.dropboxapi.com/2/files/upload" using C, but it has this error:
I can you Postman or Java SDK code upload successful with the same paramter and access_token, but when our developer call curl in embedded device, it through this error.
Anybody know why it happen?
Thank you.
* Trying 162.125.82.14:443...
* Trying 2620:100:6032:14::a27d:520e:443...
* Immediate connect fail for 2620:100:6032:14::a27d:520e: Network is unreachable
* Connected to content.dropboxapi.com (162.125.82.14) port 443 (#0)
* ALPN, offering http/1.1
* Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH
* SSL connection using TLSv1.2 / ECDHE-RSA-AES128-GCM-SHA256
* ALPN, server accepted to use http/1.1
* Server certificate:
* subject: C=US; ST=California; L=San Francisco; O=Dropbox, Inc; CN=content.dropboxapi.com
* start date: Jan 29 00:00:00 2020 GMT
* expire date: Mar 2 12:00:00 2022 GMT
* issuer: C=US; O=DigiCert Inc; OU=www.digicert.com; CN=DigiCert SHA2 High Assurance Server CA
* SSL certificate verify result: unable to get local issuer certificate (20), continuing anyway.
> POST /2/files/upload HTTP/1.1
Host: content.dropboxapi.com
Accept: */*
"Authorization: Bearer xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
"Dropbox-API-Arg: {"path": "/video/upload/T20371B001/2020/11/02/08-49-20-356990607.mp4","mode": "add","autorename": true,"mute": false,"strict_conflict": false}"
"Content-Type: application/octet-stream"
Content-Length: 9356071
Content-Type: multipart/form-data; boundary=------------------------211807cf1d53183a
Expect: 100-continue
* Mark bundle as not supporting multiuse
< HTTP/1.1 400 Bad Request
< Content-Length: 11
< Content-Type: text/plain
< Date: Mon, 02 Nov 2020 04:29:04 GMT
< Server: envoy
< Connection: close
<
* Failed writing body (1 != 11)
D/[11-02 04:29:03 tid:-1224] (file_trans.c cb:273) data is Bad Request
* Closing connection 0