http://qs321.pair.com?node_id=229311


in reply to SOAP::Lite - Finding callers IP

If you are using Apache, look into the %ENV variable; there you will find REMOTE_ADDR and other useful informations.

Ciao, Valerio

Replies are listed 'Best First'.
Re: Re: SOAP::Lite - Finding callers IP
by Pardus (Pilgrim) on Jan 23, 2003 at 14:30 UTC
    print_env.pl :
    print "Content-type: text/html\n\n"; print "<HTML> <HEAD><TITLE>Env</TITLE></HEAD> <BODY><TABLE>\n"; while (my ($k, $v) = each %ENV) { print "<TR><TD>$k</TD><TD> = $v</TD></TR>\n"; } print "</TABLE></BODY></HTML>";

    --
    Jaap Karssenberg || Pardus (Larus)? <pardus@cpan.org>
    >>>> Zoidberg: So many memories, so many strange fluids gushing out of patients' bodies.... <<<<
Re: Re: SOAP::Lite - Finding callers IP
by Biker (Priest) on Jan 24, 2003 at 08:50 UTC

    I do use Apache, but I must keep my CGI script compatible between Apache and IIS V5. (Company policies.)

    And yes, I can find REMOTE_ADDR => in both environments.

    Great. Thanks a lot.


    Everything went worng, just as foreseen.