Harsh manvar has Published 1 Articles

How to read all HTTP headers in Python CGI script?

harsh manvar

harsh manvar

Updated on 27-Feb-2020 05:31:58

910 Views

It is possible to get a custom request header's value in an apache CGI script with python. The solution is similar to this.Apache's mod_cgi will set environment variables for each HTTP request header received, the variables set in this manner will all have an HTTP_ prefix, so for example x-client-version: 1.2.3 will be available as ... Read More

1
Advertisements