Re: ciente http en bash
Guimi wrote: > Manolet Gmail escribió: > >> >> Queria saber si es posible hacer un cliente http en un script en >> linux. En realidad no quiero recibir ningun dato, solo necesito que el >> script lea un archivo y lo mande por variables de tipo POST a un >> script en PHP. > > > Si lo único que necesitas es enviar ficheros por POST, no necesitas > hacer un cliente http, basta con utilizar curl. > De hecho, si sólo te interesa subir archivos, no necesitas más que un formulario HTML y cualquier navegador web para enviarlos a tu script. ;-) Saludos -- -- Gabriel Núñez~ - gabriel.nnl(at)estudiante.uam.es -- gabriel.nunez(at)hispalinux.es //May The Source Be With You// --//-- --//-- Infórmese sobre las patentes de software: /- http://proinnova.hispalinux.es/ http://eupat.ffii.org/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: ciente http en bash
Manolet Gmail escribió: Hola amigos de la lista debian. Tengo una dudilla... Queria saber si es posible hacer un cliente http en un script en linux. En realidad no quiero recibir ningun dato, solo necesito que el script lea un archivo y lo mande por variables de tipo POST a un script en PHP. Si lo único que necesitas es enviar ficheros por POST, no necesitas hacer un cliente http, basta con utilizar curl. que tan posible es? Perfectamente. Probado y funcionando. Saludos Güimi http://guimi.net -- Por el bien de todos respetemos las normas de la lista: http://wiki.debian.org/NormasLista -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: ciente http en bash
El Sábado, 7 de Julio de 2007, Manolet Gmail escribió: > Hola amigos de la lista debian. Tengo una dudilla... > > Queria saber si es posible hacer un cliente http en un script en > linux. En realidad no quiero recibir ningun dato, solo necesito que el > script lea un archivo y lo mande por variables de tipo POST a un > script en PHP. > > que tan posible es? Otra opción muy cómoda: Instala el paquete libwww-perl y dispondrás del comando POST. -- Iñaki Baz Castillo
Re: ciente http en bash
Manolet Gmail wrote: > Hola amigos de la lista debian. Tengo una dudilla... > > Queria saber si es posible hacer un cliente http en un script en > linux. En realidad no quiero recibir ningun dato, solo necesito que el > script lea un archivo y lo mande por variables de tipo POST a un > script en PHP. > > que tan posible es? > > Prueba con netcat (nc), aunque te hará bajar al nivel de TCP. $ apt-cache show netcat Por otra parte, con un poco de Python o Perl creo que te sería más fácil simular clientes HTTP. Saludos -- -- Gabriel Núñez~ - gabriel.nnl(at)estudiante.uam.es -- gabriel.nunez(at)hispalinux.es //May The Source Be With You// --//-- --//-- Infórmese sobre las patentes de software: /- http://proinnova.hispalinux.es/ http://eupat.ffii.org/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: ciente http en bash
El 7/07/07, Manolet Gmail <[EMAIL PROTECTED]> escribió: Hola amigos de la lista debian. Tengo una dudilla... Queria saber si es posible hacer un cliente http en un script en linux. En realidad no quiero recibir ningun dato, solo necesito que el script lea un archivo y lo mande por variables de tipo POST a un script en PHP. que tan posible es? Podes hacer un script en php y mandar un post usando curl. -- O< ascii ribbon campaign - stop html mail - www.asciiribbon.org
Re: ciente http en bash
On 7/7/07, Manolet Gmail <[EMAIL PROTECTED]> wrote: linux. En realidad no quiero recibir ningun dato, solo necesito que el script lea un archivo y lo mande por variables de tipo POST a un script en PHP. que tan posible es? $ man wget -- Saludos, Toño http://agc.com.mx/antoniogc/blog