Autor Beitrag
pmw
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 65



BeitragVerfasst: Di 23.12.03 17:47 
Hallo!

ausblenden Delphi-Quelltext
1:
2:
3:
IdHTTP1.Request.UserAgent := 'Mozilla/5.0 (Windows; U; Windows NT 5.1; de-DE; rv:1.5) Gecko/20031007 Firebird/0.7';
Memo1.Lines.Text := IdHTTP1.Get('http://www.google.de/');
Memo1.Lines.Text := IdHTTP1.Get('http://www.google.com/');


Das erste "get" funktioniert einwandfrei. Beim zweiten erhalte ich aber immer eine Fehlermeldung: "302 Error Found".

Viele Grüße
pmw
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Mi 24.12.03 14:06 
schonmal nur die 2.zeile ausführen lassen ?
das könnte daran liegen, dass der google server dich weiterleiten will. denn wenn du dauf www.google.com eghts wirst du ja automatisch auf google.de geleitet.
schalt mal allowredirect in der indy kompo an. evtl beschwert sich auch der google server, wenn du keine sprech ID mitsendest, sodass er nicht weiss wohin du geleitet werden sollst.

_________________
In the beginning was the word.
And the word was content-type: text/plain.