User Tools

Site Tools


cgi_programming

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
cgi_programming [2023/01/31 23:47] – fix indents on list peteyboycgi_programming [2023/02/01 05:37] hangar118
Line 7: Line 7:
 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 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
Line 13: Line 14:
     * 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.
  
cgi_programming.txt · Last modified: 2023/04/06 20:49 by peteyboy