Board index » delphi » TWebRequest problems

TWebRequest problems


2004-05-10 09:07:58 PM
delphi94
Hi,
I wrote a CGI app (testapp.exe) which in the default TWebActionItem.OnAction
event has the (only) following line:
Response.Content := 'URL: ' + Request.URL;
When calling this CGI from my browser I should see something like:
URL: www.mydomain.de/cgi-bin/testapp.exe
But what I see is:
URL:
The URL property is empty! Why?
Another problem concerning the RemoteAddr property: I changed the above line
to:
Response.Content := 'RemoteAddr: ' + Request.RemoteAddr;
When calling this from my browser I should see something like:
RemoteAddr: <IP of my client PC>
Instead I get:
RemoteAddr: <IP of the server>
So I never get the romote IP but the server's IP. Why?
Thx
Andi
Btw: D7E on IIS5
 
 

Re:TWebRequest problems

WHat do you mean by "I should see" .... are you in the de{*word*81} ? or are
you generating a response page in your browser ? if the browser, then the
second problem is probably because your web page has < or >: for < or
Quote
and so the html parser is not giving you the chance to plug in your
ipaddress for display
 

Re:TWebRequest problems

No, I think this is not the problem. I indeed see an IP address (in my
browser), but it is the wrong one. I see the IP of my server instead of the
IP of the client's PC.
"Del Murray" <XXXX@XXXXX.COM>schrieb im Newsbeitrag
Quote
WHat do you mean by "I should see" .... are you in the de{*word*81} ? or are
you generating a response page in your browser ? if the browser, then the
second problem is probably because your web page has < or >: for <
or
>and so the html parser is not giving you the chance to plug in your
ipaddress for display