Newbie Q: CGI
shindich at my-deja.com
shindich at my-deja.com
Sun Jun 25 00:00:19 EDT 2000
You can find a sample python CGI that prints out client's IP address on my
web page: <a
href="http://www.shindich.com/sources/cgi/clientip/readme.html">http://www.sh
indich.com/sources/cgi/clientip/readme.html</a>
I hope this helps!
Alex Shindich
<ahref="http://www.shindich.com/">http://www.shindich.com/</a>
In article <8hn0c1$1a22$1 at news1.wire.net.au>,
"Steven Adams" <adams_s at lab.eng.usyd.edu.au>
wrote:
> Hi,
>
> How do you get the IP number from a request for
a web page? gethostbyname()
> and gethostbyaddress() weren't mentioned
anywhere in the cgi module docs
> (that I could see, did I miss it?)
>
> simple problem, but I just can't find the
answer...
>
> thanks Steven
>
>
Sent via Deja.com http://www.deja.com/
Before you buy.
More information about the Python-list
mailing list