欢迎大家赞助一杯啤酒🍺 我们准备了下酒菜:Formal mathematics/Isabelle/ML, Formal verification/Coq/ACL2, C++/F#/Lisp
Cgic
来自开放百科 - 灰狐
(版本间的差异)
(未显示1个用户的1个中间版本) | |||
第21行: | 第21行: | ||
cp capture.exe /var/www/cgi-bin/ | cp capture.exe /var/www/cgi-bin/ | ||
http://localhost/cgi-bin/capture.exe // use Cygwin | http://localhost/cgi-bin/capture.exe // use Cygwin | ||
+ | |||
+ | ==Build== | ||
+ | gcc -o cgictest.html cgictest.c libcgic.a | ||
+ | http://localhost/cgi-bin/cgictest.html | ||
+ | |||
+ | [[Category:CGI]] |
2010年8月22日 (日) 08:18的最后版本
cgic: an ANSI C library for CGI Programming
[编辑] Functions
- Parses form data, correcting for defective and/or inconsistent browsers
- Transparently accepts both GET and POST form data
- Accepts uploaded files as well as regular form fields
- Provides functions to set and retrieve "cookies" (browser-side persistent information)
- Handles line breaks in form fields in a consistent manner
- Provides string, integer, floating-point, and single- and multiple-choice functions to retrieve form data
- Provides bounds checking for numeric fields
- Loads CGI environment variables into C strings which are always non-null
- Provides a way to capture CGI situations for replay in a debugging environment, including file uploads and cookies
[编辑] Install
wget http://www.boutell.com/cgic/cgic205.tar.gz tar zxvf cgic205.tar.gz cd cgic205 make cp capture.exe /var/www/cgi-bin/ http://localhost/cgi-bin/capture.exe // use Cygwin
[编辑] Build
gcc -o cgictest.html cgictest.c libcgic.a http://localhost/cgi-bin/cgictest.html
分享您的观点