delphi tidhttp get procedure not working on some urls
- by davy yabut
Hi guys,
I am encountering a problem in delphi Tidhttp component wherein the GET procedure cant fetch a specific url but on other urls it is working. Example this code cant fetch the error_url but if you change the error_url to any valid url its working:
procedure TForm1.Button1Click(Sender: TObject);
var
Response : TStringStream;
error_url: string;
begin
error_url := 'http://www.chefscatalog.com/international/home.aspx'; //error url
Response := TStringStream.Create;
try
IdHTTP1.Get(error_url, Response);
Memo1.Text := Response.DataString;
finally
FreeAndNil(Response);
end;
end;
By the way idHTTP1 redirect property is set here to true so redirection is not the problem.
you can download the source code (which is indytest.zip) of this project in this link http://www.yourfilelink.com/get.php?fid=534933
Please help me guys. Thanks in advance :)