cgi module on VMS x86-64

Post Reply
User avatar

Topic author
arne_v
Master
Posts: 400
Joined: Fri Apr 17, 2020 7:31 pm
Reputation: 0
Location: Rhode Island, USA
Status: Offline
Contact:

cgi module on VMS x86-64

Post by arne_v » Thu May 09, 2024 9:17 am

(I know this is very old, officially deprecated and going away)

It does not seem to work.

Code: Select all

import cgi
...
form = cgi.FieldStorage()
and form is all empty despite being a valid form submission.

I assume it has something to do with the fact that VMS Apache - VMS Python is different from *nix Apache - *nix Python.

I have tried the obvious of doing a:

$ define/nolog sys$input apache$input

in the COM wrapper before starting Python, but it did not solve the problem.

(obvious because in C or whatever then one actually has to read form input from apache$input not stdin / sys$input - and it was what was needed to make it work on Alpha using JFP Python 2.7)
Arne
arne@vajhoej.dk
VMS user since 1986

Post Reply