HELP! * GREY=local LOCAL HTML version of Foils prepared 10 Sept 1996

Foil 10 Passing data as Standard Input to the CGI program

From CGI Programming --ECS400 fall 96 ECS400fall96 Senior Undergraduate Course -- Fall Semester 96. by Nancy J. McCracken * See also color IMAGE

It is recommended to use a form with METHOD=POST to safely pass any amount of data through STDIN.
  • The CONTENT_LENGTH environment variable is set to the number of characters being sent, and the CONTENT_TYPE variable is set to "application/x-www-form-urlencoded".
  • The data is encoded by the server:
    • The fields are separated by the unencoded &.
    • Within each field, an unencoded = separates the fieldname input form and the data.
    • Spaces within a field are translated to +.
    • Certain other keyboard characters are encoded to %[hex equivalent] - for example, ! becomes %3D.



Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Wed Feb 19 1997