LWP and <input type=image...>

LWP and <input type=image...>

am 22.12.2005 05:02:57 von hartct

I'm attempting to automate a form submission that uses a series of
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

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

am 22.12.2005 05:03:55 von Andy

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

> I'm attempting to automate a form submission that uses a series of
> 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@petdance.com => www.petdance.com => AIM:petdance

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

am 23.12.2005 03:52:52 von hartct

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 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
> > 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@petdance.com =3D> www.petdance.com =3D> AIM:petdanc=
e
>
>
>

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

am 23.12.2005 04:07:39 von hartct

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!



On 12/22/05, Christopher Hart 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 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
> > > 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@petdance.com =3D> www.petdance.com =3D> AIM:petda=
nce
> >
> >
> >
>