Get ALL headers from an incoming request?

how do you ALL headers coming from a request inside a BrowserView class?

With self.request.get_header() you can get a bunch of headers however it's missing the Authorization one.

This is an example

 POST / HTTP/1.1
 Authorization: Basic Y2hyaXM6c2VjcmV0 ---> how to retrieve this?
 Host: localhost
 Accept: */*

The request object contains preprocessed information about the request headers. Most of them are available via request.environ -- under their own name (for CGI-variables) or with an HTTP_ prefix; case can be normalized, - is typically replaced by _. Others have special access, e.g. AUTHORIZATION is avaiiable as request._auth. Some plugins might delete this attribute.

1 Like

Thanks, it was there :slight_smile: