07-20-2020, 02:37 PM
(This post was last modified: 07-20-2020, 02:38 PM by TheOldPresbyope.
Edit Reason: fix typos
)
(07-20-2020, 01:35 PM)Mwoua Wrote: I am asking here because because my other raspberry OS (retropie) use the same raspbian version and same python version and it works. So maybe a global config of MoodeOS is blocking cgi execution
No.
Seriously, this is Web Server 101 stuff. It took me all of 5 minutes to look up the Python http module and http.server, copy and paste a trivial hello.py cgi script into a subdirectory of /home/pi on a moOde r6.7.0 player, invoke the server, and see ithe output of the script show up in a web browser. Ergo, not a moOde issue.
At this point I'm done with this thread. I'll leave with this quote from the documentation of http.server:
Quote:Note that CGI scripts will be run with UID of user nobody, for security reasons. Problems with the CGI script will be translated to error 403.
Regards,
Kent