I've looked into this issue further, and it appears that the issue you're experiencing comes as a result of the 3rd party website you've been using, not with Dropbox.
From what we can tell, it's the website that's not loading the Dropbox links correctly; we're serving the files to the website, but we can't control how the website handles the files after we do so.
I'm sorry not to be able to assist you with this issue further, and please feel free to reach out with further questions!
--
To unsubscribe from this group and stop receiving emails from it, send an email to genome+un...@soe.ucsc.edu.
--
Dear Brian,
Apparently Sean s found and reported this "Range: bytes=0-" problem already on the Dropbox forum.
It might be useful to mention this report in your own bug report too:
https://forums.dropbox.com/topic.php?id=112637#post-596782
I noticed an issue that when DropBox receives a download request with a Http header of Range: bytes=0-
, it will block after reading the first byte. If you use bytes=0-100
(or some other ending value), then it will work, but it fails when the end is not specified. Likewise it also fails if you use bytes=100-
(which should start downloading at 100 bytes offset, and continue to the end.. common for resumeable downloads).
The following java code snippet demonstrates in the problem in that the connection will timeout after reading the first byte. (just add an end range, and see it work... or change to a non dropbox url)
<br />
public class TestURLConnection {<br />
public static void main(String args[]) throws IOException {<br />
String url = "http://dl.dropboxusercontent.com/u/408295/sageplugins/mediastreaming-war-file-1.3.7.59.zip";<br />
//String url = "https://github.com/stuckless/sagetv-phoenix-plex-channel/releases/download/v1.0.3/SageTVPhoenix-1.0.3-beta.zip";<br />
HttpURLConnection conn = (HttpURLConnection) new URL(url).openConnection();<br />
conn.setInstanceFollowRedirects(true);<br />
conn.setRequestProperty("Range", "bytes=0-");<br />
conn.setReadTimeout(10000);<br />
conn.setConnectTimeout(10000);<br />
conn.connect();<br />
System.out.println(" RESP: " + conn.getResponseCode());<br />
System.out.println(" MESG: " + conn.getResponseMessage());<br />
System.out.println("LENGTH: " + conn.getContentLengthLong());<br />
InputStream is = conn.getInputStream();<br />
while (is.read()>=0) {<br />
System.out.print(".");<br />
}<br />
is.close();<br />
System.out.println("DONE");<br />
}<br />
}<br />