LWP and <input type=image...>

I'm attempting to automate a form submission that uses a series of
<input type=3Dimage ...> tags, but I can't seem to figure out what I
need to post back to the server. If I watch the POST request using
LiveHTTPHeaders, I see the x & y coordinates being posted (as expected
from the spec), but I'm not sure how the event/form handler on the
server interprets it, nor how I would simulate that behavior using
LWP.

Has anyone dealt with this before? I'm at a loss after Googling and
reading up on how the ASP.NET postback handler works it's magic on
these types of forms, so any help is appreciated.

Thanks,
Chris
hartct [ Do, 22 Dezember 2005 05:02 ] [ ID #1113901 ]

Re: LWP and <input type=image...>

On Dec 21, 2005, at 10:02 PM, Christopher Hart wrote:

> I'm attempting to automate a form submission that uses a series of
> <input type=image ...> tags, but I can't seem to figure out what I
> need to post back to the server.


Use WWW::Mechanize, which wraps LWP, and use the submit() method.

xoxo,
Andy


--
Andy Lester => andy [at] petdance.com => www.petdance.com => AIM:petdance
Andy [ Do, 22 Dezember 2005 05:03 ] [ ID #1113902 ]

Re: LWP and <input type=image...>

Thanks for the suggestion - I'll try that. I still feel like I'm
missing something, though - what actually happens (from the
perspective of the request / POST) to "tell" the server what button
was clicked? I've checked out the click() and click_button() code
from WWW::Mechanize and it was obvious to me what was going on under
the covers.

Any input is appreciated,
Chris

On 12/21/05, Andy Lester <andy [at] petdance.com> wrote:
>
> On Dec 21, 2005, at 10:02 PM, Christopher Hart wrote:
>
> > I'm attempting to automate a form submission that uses a series of
> > <input type=3Dimage ...> tags, but I can't seem to figure out what I
> > need to post back to the server.
>
>
> Use WWW::Mechanize, which wraps LWP, and use the submit() method.
>
> xoxo,
> Andy
>
>
> --
> Andy Lester =3D> andy [at] petdance.com =3D> www.petdance.com =3D> AIM:petdanc=
e
>
>
>
hartct [ Fr, 23 Dezember 2005 03:52 ] [ ID #1115143 ]

Re: LWP and <input type=image...>

Wow, I must've been in a fog the last day and a half. The browser
needs to send the x & y coordinates of the image that was clicked,
which includes the name/index of the control.

Nevermind, thanks!

<c>

On 12/22/05, Christopher Hart <hartct [at] gmail.com> wrote:
> Thanks for the suggestion - I'll try that. I still feel like I'm
> missing something, though - what actually happens (from the
> perspective of the request / POST) to "tell" the server what button
> was clicked? I've checked out the click() and click_button() code
> from WWW::Mechanize and it was obvious to me what was going on under
> the covers.
>
> Any input is appreciated,
> Chris
>
> On 12/21/05, Andy Lester <andy [at] petdance.com> wrote:
> >
> > On Dec 21, 2005, at 10:02 PM, Christopher Hart wrote:
> >
> > > I'm attempting to automate a form submission that uses a series of
> > > <input type=3Dimage ...> tags, but I can't seem to figure out what I
> > > need to post back to the server.
> >
> >
> > Use WWW::Mechanize, which wraps LWP, and use the submit() method.
> >
> > xoxo,
> > Andy
> >
> >
> > --
> > Andy Lester =3D> andy [at] petdance.com =3D> www.petdance.com =3D> AIM:petda=
nce
> >
> >
> >
>
hartct [ Fr, 23 Dezember 2005 04:07 ] [ ID #1115144 ]
Perl » perl.libwww » LWP and <input type=image...>

Vorheriges Thema: Parsing of undecoded UTF-8 will give garbage when decoding entities
Nächstes Thema: LWP::Authen::Negotiate