cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Share your feedback on the Document Scanning Experience in the Dropbox App 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: 

API v2 send HTTP "Range" request not working

API v2 send HTTP "Range" request not working

David W.152
New member | Level 1

Hi dropbox,

------------

app permission type: App folder

API version: dropbox API v2

description: HTTP request with "Range" header field not working.

------------

A HTTP request with "Range" header should works like:

Request:

GET /test_320x180.mp4
Range: bytes=1000-

Response:

206 Partial Content
Content-Type: video/mp4
Content-Length: 64656927
Accept-Ranges: bytes
Content-Range: bytes 1000-64656926/*

But got these:

> POST /2/files/download HTTP/1.1

> Host: content.dropboxapi.com

> User-Agent: curl/7.43.0

> Accept: */*

> Authorization: Bearer h4CFOpR9f5UAAAAAAAAnRbDUUE……

> Dropbox-API-Arg: {"path": "/test.png"}

> Range: bytes=2000-

>

  0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0

< HTTP/1.1 200 OK

< Server: nginx

< Date: Sun, 08 Nov 2015 15:39:07 GMT

< Content-Type: application/octet-stream

< Content-Length: 14659

< Connection: keep-alive

< pragma: no-cache

< cache-control: no-cache

< original-content-length: 14659

< dropbox-api-result: {"name": "test.png", "path_lower": "/test.png", "id": "id:wPJq19T.....", "client_modified": "2015-11-08T09:18:28Z", "server_modified": "2015-11-08T10:18:28Z", "rev": "1f3f632b5f", "size": 14659}

< X-Server-Response-Time: 186

< X-Dropbox-Request-Id: 4079fdd986580631468b829d8d20bebe

< X-Robots-Tag: noindex, nofollow, noimageindex

<

-------------------

Can not finish my job without "Range"'s help.

Help please, thank you so much!

 

 

 

 

 

10 Replies 10

Norbert K.2
New member | Level 2

ah, i need to url encode the UTF8 representation of the path. it works, thanks! :winking_face:

Need more support?
Who's talking

Top contributors to this post

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