See:

http://code.google.com/p/modwsgi/wiki/DebuggingTechniques#Displaying_Request_Environment

As environ is a dictionary you can just iterate over it and dump out or compare 
the key/values as needed.

As HTTP header names are encoded as per CGI specification, they are the ones 
with HTTP_ prefix. The exception to this is the CONTENT_LENGTH and CONTENT_TYPE 
keys.

Graham

On 24/08/2014, at 11:33 AM, Madhukumar Seshadri <[email protected]> wrote:

> What if you want to get list of headers where you don't have the keys. 
> Something like for every header in self.something.headers. You cannot do this 
> today with mod_wsgi and I must acknowledge I have not read Pep 333. 
> 
> Regards,
> Madhu
> www.letustalkweb.org
> 
> On Friday, January 11, 2008 10:29:52 AM UTC-8, Carl Nobile wrote:
> I am thinking about using mod_wsgi as a possible service 
> implementation is an SOA environment. I also want to use a RESTful 
> interface as opposed to SOAP. However, if my understanding of RFC2616 
> is correct, many of the request methods may need to send along 
> specific request headers such as Authorization: credentials when using 
> the OPTION request method. 
> 
> The issue I am having is how to get the request headers from mod_wsgi? 
> They are obviously not in the "wsgi.input" stream, so where are they? 
> 
> Carl 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "modwsgi" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/modwsgi.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/d/optout.

Reply via email to