delphi tidhttp get procedure not working on some urls
Posted
by davy yabut
on Stack Overflow
See other posts from Stack Overflow
or by davy yabut
Published on 2010-03-12T01:40:51Z
Indexed on
2010/03/12
1:47 UTC
Read the original article
Hit count: 322
delphi
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 :)
© Stack Overflow or respective owner