Always remember to mention WHAT error-messages you get !!!
First of all, for SimpleGet you don't even need the "with TFPHttpClient.Create(Nil) do".
SimpleGet already creates a TFPHttpClient for itself.
Second, httpsend is not needed. TFPHttpClient is NOT from Synapse.
Third, SimpleGet just does a HTTPMethod('GET',AURL,Stream,[200]);
It only accepts a 200 response. But yahoo gives an 301 back. (Google probably too)
So if you want Redirection you need:
AllowRedirect := true;
Page := Get('http://www.yahoo.com');
So the code would be:
with TFPHttpClient.Create(Nil) do
begin
AllowRedirect := true;
// Page := Get('http://www.google.com');
// Page := Get('http://www.bing.com');
Page := Get('http://www.yahoo.com');
end;
(In this case you do need the with TFPHttpClient.Create because you need to set the AllowRedirect for it)