Prg, ktery by simuloval odeslani HTML formulare

Michal Muhlpachr michalm na pvt.net
Pondělí Březen 27 20:29:11 CEST 2000


Dobrý den,

>>>>> On Mon, 27 Mar 2000 18:19:32 -0500, Zdenek Pizl <admin na e2.pef.czu.cz> said:

    ZP> Ahoj vsichni, hledam (a nenachazim) programek, ktery by odeslal
    ZP> HTML formular na urcite URL a prevzal vygenerovanou stranku,
    ZP> kterou by mohl eventuelne i ulozit ...

    ZP>  Nevite o necem ??

curl

viz např. http://www.debian.cz/doc/curl/
http://www.debian.cz/debian/dists/potato/main/binary-i386/web/curl_6.0-1.deb
http://www.debian.cz/debian-non-US/dists/potato/non-US/main/binary-i386/curl-ssl_6.0-1.1.deb

Úryvek z man curl:

curl(1)                    Curl Manual                    curl(1)

NAME
       curl - get a file from an FTP, TELNET, LDAP, GOPHER, DICT,
       HTTP or HTTPS server.

SYNOPSIS
       curl [options] url

DESCRIPTION
       curl is a client  to  get  documents/files  from  servers,
       using  any  of  the  supported  protocols.  The command is
       designed to work without user interaction or any  kind  of
       interactivity.

       curl offers a busload of useful tricks like proxy support,
       user authentication, ftp upload, HTTP post,  SSL  (https:)
       connections, cookies, file transfer resume and more.

...

       -F/--form <name=content>
              (HTTP)  This  lets curl emulate a filled in form in
              which a user has pressed the  submit  button.  This
              causes  curl  to  POST  data using the content-type
              multipart/form-data  according  to  RFC1867.   This
              enables uploading of binary files etc. To force the
              'content' part to be read from a file,  prefix  the
              file  name  with  an  @ sign. Example, to send your
              password file to the server, named 'passwd':

              curl -F passwd=@/etc/passwd www.passwd.com

...

       -d/--data <data>
              (HTTP) Sends the specified data in a  POST  request
              to  the  HTTP  server.  Note  that the data is sent
              exactly as specified with no extra processing.  The
              data  is  expected  to  be  "urlencoded". This will
              cause curl to pass the data to the server using the
              content-type     application/x-www-form-urlencoded.
              Compare to -F.

    ZP> ---------------------------------------------------------------------
    ZP> Zdeněk Pižl, (Corp. yA), http://e2.pef.czu.cz/~xpizl mail me
    ZP> only in ISO 8859-2 or in ASCII
    ZP> ---------------------------------------------------------------------
    ZP> ... what disk do you want to erase today ?? ...

    ZP> ---------------------------------------------------------------------------
    ZP> Meta-FAQ (odhlášení, archív, FAQ a další):
    ZP> http://www.linux.cz/mailing-list

S pozdravem
-- 
Michal Mühlpachr PVT.NET, e-mail: mm na pvt.net, tel:+420-5-41558 424
PVT a.s. - pvt.net, Veveří 102, 659 10 Brno, Czech Republic


Další informace o konferenci Linux