Mercurial > forge
changeset 11258:75392b463b77 octave-forge
move example to doc
author | abarth93 |
---|---|
date | Tue, 20 Nov 2012 19:23:59 +0000 |
parents | 34fde7b32435 |
children | 6a4719ed5eb4 |
files | extra/cgi/DESCRIPTION extra/cgi/NEWS extra/cgi/doc/test_cgi.sh extra/cgi/doc/test_cgi_post.m extra/cgi/doc/test_cgi_post.sh extra/cgi/example/test_cgi.sh extra/cgi/example/test_cgi_post.m extra/cgi/example/test_cgi_post.sh |
diffstat | 8 files changed, 23 insertions(+), 20 deletions(-) [+] |
line wrap: on
line diff
--- a/extra/cgi/DESCRIPTION Tue Nov 20 16:12:15 2012 +0000 +++ b/extra/cgi/DESCRIPTION Tue Nov 20 19:23:59 2012 +0000 @@ -7,6 +7,5 @@ Description: Common Gatway Interface for Octave Categories: Web development Depends: octave (>= 3.4.0) -Autoload: yes License: GPL version 2 or later Url: http://octave.sf.net, http://modb.oce.ulg.ac.be/mediawiki/index.php/CGI_programming_with_Octave
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/extra/cgi/NEWS Tue Nov 20 19:23:59 2012 +0000 @@ -0,0 +1,4 @@ +Summary of important user-visible changes for cgi 0.1.0: +------------------------------------------------------------------- + + ** Initial release
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/extra/cgi/doc/test_cgi.sh Tue Nov 20 19:23:59 2012 +0000 @@ -0,0 +1,8 @@ +export DOCUMENT_ROOT=/var/www +export REQUEST_METHOD=GET +export QUERY_STRING="x=50%2C1,2&y=1,2,3&len=10&name=test&field=random_field" + +octave -q <<EOF +CGI = cgi(); +disp(cgi.form.y) +EOF \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/extra/cgi/doc/test_cgi_post.m Tue Nov 20 19:23:59 2012 +0000 @@ -0,0 +1,5 @@ +#!/usr/bin/octave -qH + + +CGI = cgi(); +CGI.form.y
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/extra/cgi/doc/test_cgi_post.sh Tue Nov 20 19:23:59 2012 +0000 @@ -0,0 +1,6 @@ +export DOCUMENT_ROOT=/var/www +export REQUEST_METHOD=POST +export CONTENT_TYPE=application/x-www-form-urlencoded +export CONTENT_LENGTH=54 + +echo "x=50%2C1,2&y=1,2,3&len=10&name=test&field=random_field" | ./test_cgi_post.m
--- a/extra/cgi/example/test_cgi.sh Tue Nov 20 16:12:15 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,8 +0,0 @@ -export DOCUMENT_ROOT=/var/www -export REQUEST_METHOD=GET -export QUERY_STRING="x=50%2C1,2&y=1,2,3&len=10&name=test&field=random_field" - -octave -q <<EOF -CGI = cgi(); -disp(cgi.form.y) -EOF \ No newline at end of file
--- a/extra/cgi/example/test_cgi_post.m Tue Nov 20 16:12:15 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,5 +0,0 @@ -#!/usr/bin/octave -qH - - -CGI = cgi(); -CGI.form.y
--- a/extra/cgi/example/test_cgi_post.sh Tue Nov 20 16:12:15 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,6 +0,0 @@ -export DOCUMENT_ROOT=/var/www -export REQUEST_METHOD=POST -export CONTENT_TYPE=application/x-www-form-urlencoded -export CONTENT_LENGTH=54 - -echo "x=50%2C1,2&y=1,2,3&len=10&name=test&field=random_field" | ./test_cgi_post.m