mod_python and Content-Type

Paul Rudin paul.rudin at ntlworld.com
Sun Jan 14 07:06:59 CET 2007


"Graham Dumpleton" <grahamd at dscpl.com.au> writes:


> All headers which come from the client are available through the
> 'headers_in'
> attribute of the request object. Eg.
>
>   def handler(req):
>     ct = req.headers_in.get('Content-Type')
>     ...

Thanks - it's even mentioned in the mod_python manual. Don't know how
I missed it :(



More information about the Python-list mailing list