【发布时间】:2014-11-15 11:05:50
【问题描述】:
FHTTP.HandleRedirects := False;
try
StrPage := FHTTP.Get('https://somesite.site');
except
end;
有重定向 302,但我需要从此请求中获取文本.. 回应:
(状态行):找到 HTTP/1.1 302 缓存控制:无缓存,无存储 内容长度:148291 内容类型:文本/html;字符集=utf-8 日期:2014 年 9 月 21 日星期日 09:13:49 GMT 过期:-1 地点:/di 杂注:无缓存作为回应:
<html><head><title>Object moved</title></head><body>
<h2>Object moved to <a href="/di">here</a>.</h2>
</body></html>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
...
我怎么不能得到这个文本?
【问题讨论】: