Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

cgi_init(3) [debian man page]

cgi_init(3)							     cgi/cgi.h							       cgi_init(3)

NAME
cgi_init - Initialize ClearSilver CGI environment SYNOPSIS
#include <cgi/cgi.h> NEOERR *cgi_init (CGI **cgi, HDF *hdf); ARGUMENTS
cgi - a pointer to a CGI pointer hdf_file - the path to an HDF data set file that will also be loaded into the dataset. This will likely have to a be a full path, as the HDF search paths are not yet set up. Certain things, like DESCRIPTION
cgi_init initializes the ClearSilver CGI environment, including creating the HDF data set. It will then import the standard CGI environ- ment variables into that dataset, will parse the QUERY_STRING into the data set, and parse the HTTP_COOKIE into the data set. Note that if the var xdisplay is in the form data, cgi_init will attempt to validate the value and launch the configured debugger on the CGI program. These variables have to be specified in the hdf_file pointed to by hdf_file. The default settings do not allow debugger launching for security reasons. RETURN VALUE
cgi - an allocated CGI struct, including SEE ALSO
cgi_debug_init(3), cgi_parse(3), cgi_destroy(3), cgi_js_escape(3), cgi_html_escape_strfunc(3), cgi_register_strfuncs(3), cgi_output(3), parse_rfc2388(3), cgi_url_validate(3), open_upload(3), cgi_cs_init(3), cgi_url_escape_more(3), cgi_html_strip_strfunc(3), cgi_neo_error(3), cgi_redirect(3), cgi_filehandle(3), cgi_register_parse_cb(3), cgi_url_escape(3), cgi_init(3), cgi_redirect_uri(3), cgi_cookie_clear(3), cgi_url_unescape(3), cgi_vredirect(3), cgi_display(3), cgi_html_ws_strip(3), cgi_error(3), cgi_cookie_set(3), cgi_text_html_strfunc(3), cgi_cookie_authority ClearSilver 12 July 2007 cgi_init(3)

Check Out this Related Man Page

cgi_cookie_set(3)						     cgi/cgi.h							 cgi_cookie_set(3)

NAME
cgi_cookie_set - Set a browser Cookie SYNOPSIS
#include <cgi/cgi.h> NEOERR *cgi_cookie_set (CGI *cgi, const char *name, const char *value, const char *path, const char *domain, const char *time_str, int persistent, int secure); ARGUMENTS
cgi - a CGI struct name - the name of the cookie value - the value to set the cookie to. path - optional path for which the cookie is valid. Default is / domain - optional domain for which the cookie is valid. You can use cgi_cookie_authority to determine this domain. Default is none, which is interpreted by the browser as the sending domain only. time_str - expiration time string in the following format DESCRIPTION
cgi_cookie_set will issue a Set-Cookie header that should cause a browser to return a cookie when required. Note this function does no escaping of anything, you have to take care of that first. HH:MM: SS GMT. Only used if persistent. Default is one year from time of call. persistent - cookie will be stored by the browser between sessions secure - cookie will only be sent over secure connections RETURN VALUE
None SEE ALSO
cgi_debug_init(3), cgi_parse(3), cgi_destroy(3), cgi_js_escape(3), cgi_html_escape_strfunc(3), cgi_register_strfuncs(3), cgi_output(3), parse_rfc2388(3), cgi_url_validate(3), open_upload(3), cgi_cs_init(3), cgi_url_escape_more(3), cgi_html_strip_strfunc(3), cgi_neo_error(3), cgi_redirect(3), cgi_filehandle(3), cgi_register_parse_cb(3), cgi_url_escape(3), cgi_init(3), cgi_redirect_uri(3), cgi_cookie_clear(3), cgi_url_unescape(3), cgi_vredirect(3), cgi_display(3), cgi_html_ws_strip(3), cgi_error(3), cgi_cookie_set(3), cgi_text_html_strfunc(3), cgi_cookie_authority ClearSilver 12 July 2007 cgi_cookie_set(3)
Man Page

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

environmental varibles

flavor -- AIX 4.2.1 I am putting together some HTML pages, some of which contain forms. The problem pops up when I attempt to pass variables (from the forms) from one HTML page to a cgi-like page created using ksh. I have used the $1 - $9 vars, but they do not work with the passing. With... (1 Reply)
Discussion started by: Xiix
1 Replies

2. Shell Programming and Scripting

Invoking CGI executable after setenv (in bash)

Hello, I have an executable cgi program that I can run manually from my Linux shell after setting environmental variables on the previous line, like this: setenv QUERY_STRING "workdir=/u/here/there/&nb1=5&nb2=1000" MyExecutable.cgiHow can I imitate this behavior in a bash script? I tried... (11 Replies)
Discussion started by: aplaydoc
11 Replies

3. UNIX for Dummies Questions & Answers

suggest book on Perl-cgi

hi ppl there is requirement of perl-cgi application in my project but i dont have knowledge about CGI i am good in perl so suggest some books .... one book i found on net is "Writing CGI Applications with Perl" is this book good ?? (1 Reply)
Discussion started by: zedex
1 Replies

4. Programming

help with sscanf()!

Hi everybody, i need help with this function, i'm programming in CGI with C and i can't make this work. QUERY_STRING is something like: user=MYUSER&pass=MYPASS So, what i want is to store the strings containing the username and the password into str1 and str2 respetively, here's the... (4 Replies)
Discussion started by: Zykl0n-B
4 Replies

5. Programming

Run two CGIs simultaneously and Ajax to read updated value from CGI1

Flow of program: C based CGI is used CGI1: -Gets called when user hits upload button(submit) ie form action = CGI1 -Does the file upload (copy to a directory etc) JS, Ajax fucntion: -A JS function is called when user hits upload button -The JS function opens an Ajax request for CGI2... (8 Replies)
Discussion started by: xs2punit
8 Replies

6. Shell Programming and Scripting

Script for cygwin, HDF-EOS for converting HDF to TIF

I found a script from HDF-EOS for converting HDF to TIF, i did all steps but when i run there is some errors. Link of instructions: http://newsroom.gsfc.nasa.gov/sdptoolkit/HEG/HEG_Batch_job_Help.txt What I do rong about script? #! /bin/sh # in this script it is assumed that HEG... (6 Replies)
Discussion started by: vardaloupas
6 Replies

7. Shell Programming and Scripting

How to run Background process one after another

Hii Friends, I am using Perl CGI. I am running A SCP Command via Perl CGI in Background. Like system("scp -r machinename:/PathOfFile/ /Path/WhereToCopyIt/ &) This Copy Process takes some times lets say 15 min. Now I want When This copy process gets complete then send me... (5 Replies)
Discussion started by: Navrattan Bansa
5 Replies

8. Homework & Coursework Questions

Installing CGI

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: The objective of this project is to learn how to configure the apache web server. The goal is to make cgi work... (4 Replies)
Discussion started by: secretive...
4 Replies

9. Homework & Coursework Questions

Perl CGI: No such file and directory: Yet file exists?

This technically a homework problem but I just need help solving this strange issue. The code is kinda long, I tried posted only the relevant parts. 1. The problem statement, all variables and given/known data: I receive this error: got error No such file or directory (2) at:... (3 Replies)
Discussion started by: jasondancks
3 Replies