Le 12-01-2013 17:22, Dalton Barreto a écrit :
> 2013/1/10 Gruel Bruno <[email protected]>
>
>> Le 10-01-2013 13:49, Gruel Bruno a écrit :
>> >
>> Soory for the noise i just want to subscribe myself.
>>
>> First hello ;)
>>
>>
> Hello!!
>
>
>> I use mongrel2 with python handler. Is someone can explain me
>> how i can retrieve the client IP ?
>>
>>
> Are you writing your own mongrel2 python handler? If yes, you can 
> this
> value from the 'x-forwarded-for' field inside the message mongrel2 
> sends to
> your handler.

If i understand with :
conn = handler.Connection(....)
I can get this field whith conn.XXXX["x-forwarded-for"] or somethings 
like that ?

> If you are using another python handler you should read how this 
> specific
> handler stores the value from the 'x-forwarded-for' field.

I use PYJS handler for Mongrel2. I'll ask to the pyjs list how to get  
this field
x-forwarded-for.

Thank's for you reply. I'll try this and report.

Bruno

-- 
Sallanches Data Network (SDN)
Pour l'Internet des Internautes
http://www.sdnet.info
Tel:06.38.77.85.68

Reply via email to