Autor Beitrag
Perkles
Hält's aus hier
Beiträge: 1



BeitragVerfasst: Do 20.07.06 04:43 
Hallo,

ich habe irgend wie ein kleines Verständnis Problem mit Indy 10 und TIdHTTPProxyServer.
Der Proxy funktioniert soweit einwandfrei, Client Anfragen werden weiter geleitet und ausgeführt. Nur hat der Proxy ja spezielle Aufgaben und genau da habe ich mein Problem.
Ich will/muss wissen, auf welchen Host und welchen Pfad der Client zugreifen will und muß dies entsprechende behandeln.
Ich habe jetzt versucht mit OnHTTPDocument dieses abzuarbeiten. Soweit auch ok. Ich bekomme mit AHeaders die Header Informationen, mit ADocument die Pfad Informationen und mit VStream die eigentlichen Daten. Nur wie komme ich an die Host Informationen? Sei es nun in IP Form oder URL Form. Ich vermute mal, dass man dies über ASender abfragen kann, aber trotz ausführlicher Google Suche (was schon recht mager zu TIdHTTPProxyServer ist) und lesen der Dokumentation zu Indy 10, konnte ich nicht heraus finden, wie ich an die URL/IP der aktuell abgefragten Seite heran komme.
Ich habe auch schon überlegt, ob ich das Ganze nicht lieber über Indy Server/Client Funktionen selber machen sollte, aber wozu dann TIdHTTPProxyServer, wenn man es nicht nutzen kann?
Im Prinzip soll der Proxy zwei Aufgaben am Ende erfüllen.
a) die abgerufenen Daten zwischenspeichern (also ein Cache Proxy) und
b) bestimmte URL's filtern, protokollieren und evtl. blocken.

Hat jemand eine Idee zu obigem Problem (alleine schon das finden der abgefragten URL/IP über TIdHTTPProxyServer)?

Danke für Tips!
oern
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 142

Linux, Win XP
D7
BeitragVerfasst: Sa 24.02.07 18:26 
Das würde mich auch interessieren...

*push*

_________________
Ich hab eine Signatur
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: So 25.02.07 11:57 
Steht das denn nicht irgendwo in den AHeaders drin ?

_________________
In the beginning was the word.
And the word was content-type: text/plain.
Andreas L.
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1703
Erhaltene Danke: 25

Windows Vista / Windows 10
Delphi 2009 Pro (JVCL, DragDrop, rmKlever, ICS, EmbeddedWB, DEC, Indy)
BeitragVerfasst: So 25.02.07 12:20 
Die Daten Chachen und evtl. ändern kannst du wenn du VStream editierst. Um die komplette Url zu bekommen musst du die Datei idHTTPProxyServer.pas erst abändern, da diese Funktion nicht standardmäßig unterstützt wird. Ich habe in meinenn Blog dazu eine Anleitung geschrieben: andreas-lauss.de/arc...d-der-verlorene-host
oern
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 142

Linux, Win XP
D7
BeitragVerfasst: So 25.02.07 14:25 
Ich benutze nun den TIdHTTPServer als Proxy, damit kann ich nun alles kontrollieren.
Wie genu steht in der DP

_________________
Ich hab eine Signatur