slitaz-base-files view doc/httphelper.txt @ rev 233
/usr/bin/slitaz: small improvment
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sun Apr 13 01:36:45 2014 +0200 (2014-04-13) |
parents | 524eab3120ae |
children |
line source
2 SYNOPSIS
3 . /usr/lib/slitaz/httphelper.sh
4 function
6 DESCRIPTION
7 Httphelper is a CGI SHell helper providing PHP-like syntax and
8 useful functions to encode or encrypt strings. Httphelper lets you
9 easily parse QUERY_STRING and work on any webserver supporting CGI.
11 FUNCTIONS
12 GET [var [index]]
13 POST [var [index]]
14 COOKIE [var [index]]
15 FILE [var {name|tmpname|size|type}]
16 header [strings]
17 http_urlencode string
18 urlencode string
19 urldecode string
20 htmlentities string
21 md5crypt string
22 sha512crypt string
23 httpinfo
24 httphelper
26 EXAMPLES
27 header "Content-type: text/html" "Set-Cookie: name=value; HttpOnly"
29 value=$(GET name)
30 if [ "$value" ]; then
31 echo "Input name has a value: $value"
32 fi
34 AUTHORS
35 Written by Pascal Bellard and Christophe Lincoln