cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: reading a form

From: Georg Horn <horn_at_koblenz-net.de>
Date: Wed, 29 Sep 2004 08:52:21 +0200

On Tue, Sep 28, 2004 at 11:40:22PM -0400, Greg Martin wrote:

> <form name='loginform' method='POST'
> action='/config/ls002r8/login.elm?selected=_/app/artemisconfigserver/login.elm/26' target=''>
> <input type=hidden name=nssredirect>
> <input type="hidden" name="_actionName" >
> <input type="hidden" name="_targetFullID" >
>
> <input type=hidden name=showpopup value="true" >
> <input type=hidden name=cookiepopupexpire value="604800" >
> <input type=hidden name=SIG value="82DB5B1F0B30FE2554E1A4D26BDEA360" >
> <input type=hidden name=NONCE value="7915345E0416002F" >
>
> So the question I pose here is simple, can curl capture these for me or
> should I use perl, python or some other script for this piece?

I use perl and the HTML::TokeParser module to parse such html-code
and get the action-url of the form and names and values of input
fields.

Bye,
Georg
Received on 2004-09-29