[Linux-Biella] POST di FORM da Shell
stefano porrino
linux@bilug.linux.it
Thu, 07 Mar 2002 11:14:11 +0100
Luca Bertoncello wrote:
> Ciao a tutti!
>
..snip..
>
> Lynx, con l'opzione -post_data consente di passare, tramite lo Standard Input, i parametri alla Form chiamata!
>
> Oppure, in una botta sola:
>
> echo par1=<valore "escapato">\&par2=<valore "escapato"> | lynx -post_data http://<indirizzo>/form.cgi
bella storia!
Anche se ormai non ti serve + potresti anche fare:
bash$tclsh
% package require http
2.3
% set tok [http::geturl www.quellochevuoi.it/insert.php -query
[http::formatQuery par1 val1 par2 val2 par3 val3.. parn valn]]
::http::1
%
nell'array ::http::1 hai tutta la pagina che ti restituisce l'url
ciao
--
Stefano Porrino <stefano@porrino.it>
<http://www.porrino.it>