2 #BHP - BASH Home Page - Library
6 if [ "$REQUEST_METHOD" == 'POST' ]; then
10 QUERY_STRING
='hl=cs&q=%C5%BElu%C5%A5ou%C4%8Dk%C3%BD+k%C3%BA%C5%88&btnG=Hledat&lr='; #debug-only
12 echo -ne 'Content-type: text/html\n\n'
15 echo -e $
( echo "$@" |
sed -e 's/+/ /g;s/%/\\x/g' );
19 if [[ ! -z "$2" ]]; then QUERY_STRING
="$2"; fi;
20 echo "$QUERY_STRING" |
sed -e 's/&/\n/g'|
while read i
; do
21 param
="$(echo $i | cut -d = -f 1)"; param
="$(urldecode $param)";
22 value
="$(echo $i | cut -d = -f 2)"; value
="$(urldecode $value)";
23 if [[ "$param" == "$1" ]]; then echo "$value"; break; fi;
This page took 0.284667 seconds and 4 git commands to generate.