Autor Beitrag
MarkusBauer
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 70

Win XP Pro
Delphi 7 PE+Indy
BeitragVerfasst: So 21.10.07 17:46 
Hallo,
ich rufe mit einer IdHttp-Komponente eine Seite auf, die einen Location-Header zurückgibt:
ausblenden Quelltext
1:
<?php header('Location: newurl.html'); ?>					

Doch ich bekomme bei jedem Versuch nur eine Exception, bin aber nicht in der Lage, den Header auszulesen.
Ich fordere die Seite mit idHttp-Post an.
Wie kann ich den Http-Header empfangen?

mfg Markus
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: So 21.10.07 17:51 
Indem Du sie
1. Entweder aus der Indy-Komponente abfragst,
2. aus der Exception abfragst,
3. Über OnHeadersAvailable,
4. Über OnRedirect

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.
MarkusBauer Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 70

Win XP Pro
Delphi 7 PE+Indy
BeitragVerfasst: So 21.10.07 18:25 
1. Wie fragt man den Header aus der Indy-Komponente ab?
4. Wie fragt man den Header aus OnRedirect ab?

Ich bin auf diesem Gebiet Neuling.
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: So 21.10.07 18:30 
0. RTFM
1. IdHTTP1.Response
4. Du bekommst einen Parameter Dest ...; Sender ist deine Indy-Kompo

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.