cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: parsing values of pull down menu

From: Ralph Mitchell <ralphmitchell_at_gmail.com>
Date: Thu, 23 Mar 2006 06:08:42 -0600

On 3/23/06, Pankaj <pankaj_at_nii.res.in> wrote:
>
> Thanx Kjell,
>
> No I dont want CURL to parse the HTML page to text. Rather the HTML page
> itself has the option to save the page in text format. This option appears in
> a pull down menu (which says SEND TO) which has to be pulled and the option
> TEXT has to be selected. I want that this selection be automated. How do i
> tell curl to select TEXT option for me.

That selector is part of a form, and it has an "OnChange" element
which executes a function called "ControlSync". You'll need to locate
that function to see what it does to the form.

It might be simpler to install LiveHTTPHeaders in Firefox and look at
what happens when you go to the page and make the selection.
LiveHTTPHeaders records all the headers sent out by your browser, as
well as the headers received in response.

Ralph Mitchell
Received on 2006-03-23