previous up next

Bsp. für eine POST-Anfrage

post.cgi:
#!/bin/bash
echo Content-type: text/plain
echo
echo CONTENT_LENGTH: $CONTENT_LENGTH
read -n $CONTENT_LENGTH INPUT
echo $INPUT
$ POST http://server/post.cgi
Please enter content [...]
test=123456
<CTRL-D>

CONTENT_LENGTH: 12
test=123456
$

© 2002 Tina Müller, 11/20/2002 12:24:25