curl-users
Re: Post www-urlencoded data
From: Alessandro Vesely <vesely_at_tana.it>
Date: Tue, 26 Feb 2008 10:16:07 +0100
Date: Tue, 26 Feb 2008 10:16:07 +0100
What you get is Not what you see wrote:
> <input type="hidden" name="__VIEWSTATE" value="value" />
> How can I extract the value from such an html line?
You may try something along the idea of
sed -r 's/^.*\Wvalue="([^"]*)".*/\1/i'
However, if you never had a chance to learn Perl before, you may take
this one. In particular, look at HTML::Parse and similar modules.
Received on 2008-02-26