获取文件
我使用的脚本从https://www.dropbox.com/browse_plain/$ REMOTEDIR?no_js=true
现在返回:
找到 HTTP/1.1 302
服务器:nginx/0.7.63
日期:2010 年 5 月 24 日星期一 17:02:44 GMT
内容类型:text/html;字符集=utf-8
传输编码:分块
连接:保持活动状态
地点:/home
编译指示:无缓存
缓存控制:无缓存
找到了
找到
该资源位于/home;
您应该被重定向
自动。
;
WSGI 服务器
而脚本有一个从源解析 div 的方法。
- 任何人都可以确认他们的文件获取脚本是否有这个问题吗?如果没有,由于没有官方 API,您正在使用什么方法?
The script I used fetched a file from
https://www.dropbox.com/browse_plain/$REMOTEDIR?no_js=true
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?
发布评论
评论(1)
您使用的脚本不考虑重定向。通常,浏览器会看到
location: /home
标头,并向该 URL 发出另一个请求。The script you are using is not respecting redirects. Generally browsers will see the
location: /home
header and make another request to that URL.