FHTTP.HandleRedirects := False;
try
StrPage := FHTTP.Get('https://somesite.site');
except
end;
There is redirect 302 , but i need to get text from this reqest.. Response:
(Status-Line):HTTP/1.1 302 Found Cache-Control:no-cache, no-store Content-Length:148291 Content-Type:text/html; charset=utf-8 Date:Sun, 21 Sep 2014 09:13:49 GMT Expires:-1 Location:/di Pragma:no-cache
In response :
<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">
...
How cant i get this text?