Dropbox file fetcher broken, API/Redirect update on their part?
The script I used fetched a file from
https://www.dropbox.com/browse_plain/$REMOTEDIR?no_js=tr开发者_如何学JAVAue
which now returns:
HTTP/1.1 302 FOUND
Server: nginx/0.7.63
Date: Mon, 24 May 2010 17:02:44 GMT
Content-Type: text/html; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive
location: /home
pragma: no-cache
cache-control: no-cache
Found
<h1>Found</h1> <p>The resource was found at <a href="/home">/home</a>;
you should be redirected automatically.
<hr noshade> <div align="right">WSGI Server</div>
Whereas the script has a method to parse a div from the source.
- Can anyone confirm whether or not they have this issue with file fetching scripts? If not what method(s) are you using since there's no official API?
The script you are using is not respecting redirects. Generally browsers will see the location: /home
header and make another request to that URL.
精彩评论