On Sat, Nov 16, 2013 at 12:12:58PM +0200, Marius Gedminas wrote: > On Sat, Nov 16, 2013 at 07:14:54AM +0100, Tamer Higazi wrote: > > Hi people! > > > > Any ideas how to get the http headers of a request object ?! > > AFAICT the only way is
The only way to *enumerate*, that his. request.getHeader() is obviously
better if you already know which header you want.
>
> [(k, v) for k, v in request.environment.items() if k.startswith('HTTP_')]
Marius Gedminas
--
MPEG-1 Audio Layer 3 is colloquially known as “MP3.” If you haven’t heard of
MP3s, I don’t know what to do with you. Walmart sells portable music players
and calls them “MP3 players.” WALMART. Anyway…
-- Mark Pilgrim
signature.asc
Description: Digital signature
_______________________________________________ bluebream mailing list [email protected] https://mail.zope.org/mailman/listinfo/bluebream
