With TracStandalone I pprint'ed the environ dict at the start of dispatch_request:
{'CONTENT_TYPE': 'text/plain',
'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9',
'HTTP_ACCEPT_ENCODING': 'gzip, deflate, br',
'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.9,fr-FR;q=0.8,fr;q=0.7',
'HTTP_AUTHORIZATION': 'Digest username="user1", realm="trac", nonce="854d06777afa9b9a5b0243a3a7453d5e", uri="/proj-1.4/milestone/Release%20Edition%205.3", response="b90c6b243cc22c34aef5ce336e9865e3", qop=auth, nc=00000028, cnonce="6ddef167d2ec8331"',
'HTTP_CONNECTION': 'keep-alive',
'HTTP_COOKIE': 'trac_form_token=6fedb0898635ff6cb18e7231; trac_auth=db9c3ee6304876204f470c8217fdba24',
'HTTP_HOST': 'localhost:8001',
'HTTP_REFERER': '
http://localhost:8001/proj-1.4/roadmap',
'HTTP_SEC_FETCH_DEST': 'document',
'HTTP_SEC_FETCH_MODE': 'navigate',
'HTTP_SEC_FETCH_SITE': 'same-origin',
'HTTP_SEC_FETCH_USER': '?1',
'HTTP_UPGRADE_INSECURE_REQUESTS': '1',
'HTTP_USER_AGENT': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36',
'PATH_INFO': '/proj-1.4/milestone/Release Edition 5.3', 'QUERY_STRING': '',
But I don't suppose the output would be captured anywhere visible if you put at the start of the application function?:
import pprint
pprint.pprint(environ)
But maybe Passenger would capture it in a log? Or you could open a file and output to a file?
Ryan