![]() |
|
camelcity.com The power behind the pages 888-229-3255 |
1. Use a FORM input field, and POST the form.
2. Use a URL query string when retreiving this script. For example,
call the script as:
http://www.camelcity.com/example-cgi/cookie.cgi?example=a
to set a variable called "example" equal to "a"
3. Use a cookie. To set a cookie, call this script with the query
string "setcookie=value". For example:
http://www.camelcity.com/example-cgi/cookie.cgi?setcookie=a
will set the ExampleCookie equal to a. This script only uses one cookie
as an example. By changing the source code, you can assign other cookie
values as needed.
DOCUMENT_ROOT=/var/www/host-248 HTTP_ACCEPT=Accept: application/xhtml+xml,text/html;q=0.9,text/plain; HTTP_ACCEPT_CHARSET=ISO-8859-1,utf-8;q=0.7,*;q=0.7 HTTP_ACCEPT_ENCODING=gzip HTTP_ACCEPT_LANGUAGE=en-us,en;q=0.5 HTTP_CACHE_CONTROL=no-cache HTTP_CONNECTION=close HTTP_HOST=www.camelcity.com HTTP_PRAGMA=no-cache HTTP_USER_AGENT=CCBot/1.0 (+http://www.commoncrawl.org/bot.html) PATH=/bin:/usr/bin:/sbin:/usr/sbin REMOTE_ADDR=38.103.63.61 REMOTE_PORT=43986 SCRIPT_FILENAME=/var/www/host-248/example-cgi/cookie.cgi SERVER_ADDR=192.168.8.248 SERVER_ADMIN=noel@ncmusic.com SERVER_NAME=www.camelcity.com SERVER_PORT=80 SERVER_SIGNATURE= SERVER_SOFTWARE=Apache/1.3.34 (Debian) PHP/4.4.4-8+etch6 mod_perl/1.29 UNIQUE_ID=STXhCMCoCPgAAG-Q2D4 GATEWAY_INTERFACE=CGI/1.1 SERVER_PROTOCOL=HTTP/1.1 REQUEST_METHOD=GET QUERY_STRING= REQUEST_URI=/example-cgi/cookie.cgi SCRIPT_NAME=/example-cgi/cookie.cgi
|