Both sides previous revisionPrevious revisionNext revision | Previous revision |
cgi_programming [2023/02/01 05:31] – hangar118 | cgi_programming [2023/04/06 20:49] (current) – fix typo peteyboy |
---|
Here are some further tips: | Here are some further tips: |
| |
* [[cgi_passing_parameters|Passing parameters to a CGI script]] - example of setting up a CGI script that ca process parameters in the URL | * [[cgi_passing_parameters|Passing parameters to a CGI script]] - example of setting up a CGI script that can process parameters in the URL |
* [[https://hea-www.harvard.edu/~fine/Tech/cgi-safe.html |Safe CGI]] - at the User level, you can run CGI scripts in your web space, but it can be tricky, so you should consult this guide | * [[https://hea-www.harvard.edu/~fine/Tech/cgi-safe.html |Safe CGI]] - at the User level, you can run CGI scripts in your web space, but it can be tricky, so you should consult this guide |
* if you want to try creating CGI with the **bash** shell language, [[http://bashlib.sourceforge.net/ |bashlib]] is an old tool that may help | * if you want to try creating CGI with the **bash** shell language, [[http://bashlib.sourceforge.net/ |bashlib]] is an old tool that may help |
* Use //CGI::Tiny//, a non-framework modern replacement for standalone perl CGI: [[https://metacpan.org/pod/CGI::Alternatives#BUT-I-DON'T-WANT-TO-USE-A-FRAMEWORK | Perl CGI But I Don't Want to Use a Framework]]. You can easily install in your user perl library, and it works great! Mojo Templates are installed on both the SDF cluster and on the metaarray, and CGI::Tiny works with (safe) templates to prevent XSS, plus [[https://metacpan.org/dist/CGI-Tiny/view/lib/CGI/Tiny/Cookbook.pod#Templating | it works with other template engines]] which the docs have examples for. | * Use //CGI::Tiny//, a non-framework modern replacement for standalone perl CGI: [[https://metacpan.org/pod/CGI::Alternatives#BUT-I-DON'T-WANT-TO-USE-A-FRAMEWORK | Perl CGI But I Don't Want to Use a Framework]]. You can easily install in your user perl library, and it works great! Mojo Templates are installed on both the SDF cluster and on the metaarray, and CGI::Tiny works with (safe) templates to prevent XSS, plus [[https://metacpan.org/dist/CGI-Tiny/view/lib/CGI/Tiny/Cookbook.pod#Templating | it works with other template engines]] which the docs have examples for. |
* Use [[https://metacpan.org/pod/CGI::Alternatives#Plack-As-A-Run-On-Demand-CGI-Script| Plack]], it can be set up in your SDF space and run as CGI even though it's designed around a web framework and its own webservers. | * Use [[https://metacpan.org/pod/CGI::Alternatives#Plack-As-A-Run-On-Demand-CGI-Script| Plack]], it can be set up in your SDF space and run as CGI even though it's designed around a web framework and its own webservers. |
* Mojolicious and Mojolicious Lite are well-known Perl CGI frameworks, but at presentl do not work on SDF. | * Mojolicious and Mojolicious Lite are well-known Perl CGI frameworks, but at present do not work on SDF. |
| |