Message375207
| Author |
maarten |
| Recipients |
demian.brecht, facundobatista, fdrake, maarten, martin.panter, orsenthil, quentel, remi.lapeyre, v+python |
| Date |
2020年08月12日.02:54:55 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1597200895.7.0.215107604344.issue10486@roundup.psfhosted.org> |
| In-reply-to |
| Content |
The CGI examples of urwid (see http://urwid.org/manual/displaymodules.html#cgi-web-display-module-web-display) don't work on http.server because of missing meta variables.
Using cgitb, I found out that the webdriver expects the environment variable `HTTP_X_URWID_METHOD` to be set. The javascript sets the "X-Urwid-Method" header (using XmlHttpRequest), but these are not visible by the CGI python script.
So some scripts extra Meta-Variables neet to be set.
I think section 4.1.18 applied because it is a http header that is being set. The sections says that these meta-variables are optional though.
I argue that having access to extra headers is useful. |
|