David Collantes <[EMAIL PROTECTED]> writes:
> Yes, I know I can add the header itself, what I want to know is how to get the
> value (the IP) added.
Obviously, any machine can have more than one IP address. Here's how
to get the one associated with the machine's hostname.
import socket
ADDED_HEADERS_CLIENT = {
"X-Originating-IP" : socket.gethostbyname(socket.gethostname())
}
Tim
_____________________________________________
tmda-users mailing list ([EMAIL PROTECTED])
http://tmda.net/lists/listinfo/tmda-users