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