|Don't ask to ask, just ask|
Re^2: Ticking multiple checkboxes with WWW::Mechanize / WWW::Mechanize::Shellby serf (Chaplain)
|on Sep 29, 2006 at 17:38 UTC||Need Help??|
YES! it helps!
You are the most wonderful big hot scaley thing that eats people, sets haystacks on fire and swoops away with sheep EVER!
It gives you similar output in terms of what your web browser is sending, but I agree, Ethereal is a great tool!
What I did:
The install asked for HTTP::Request::Params
which asked for:
Email::MIME::Modifier asked for:
Email::MIME asked for:
Email::MessageID asked for:
BOY what a lot of modules! but they all installed with only a few warnings and no errors thank goodness so that was OK...
I did that, cranked it up and got this error:
had a look at HTTP::Proxy] and added:
Started it up and was away...
I am using Opera because this horrible web interface won't even work in Firefox which cares more about "irelevant" things like having <tr> and </tr> around the <td>...</td>s in your tables and other pernickity things like that...) (HTML coding standards? what are THEY?)
In my web browser I set my HTTP proxy to localhost Port 3128 ...
I checked "Use proxy for local servers" (because I found it didn't want to talk to my proxy without that),
opened a new tab in Opera and browsed to http://http-recorder/
(yes, it is literally that - I first wondered if it meant "put the name of the box you're running the script on" but of course you've already specified that in your proxy settings and HTTP::Recorder just needs to see you ask for http://http-recorder/ in the browser to know to show you its output page...)
Then back in the first window I reloaded my troublesome URL...
Well, it let me load the page fine, but when I filled out and submitted the form it came back with "An unknown error has occurred." from the web page, and the perl script's output on screen said:
WAAAAH! :'-O :'-((( .oO(Oh no!) I thought... .oO(Back to square one!)
I hit refresh in the window to http://http-recorder/ to see what it had... and it had a lot...
(there are lots of fields jammed onto this page, as you can probably imagine!)
I thought .oO(Well, it didn't work in updating the page, but it's worth trying the perl source it generated anyway)
I just kept the very most relevent bits and put them in a sample script...
I saved it, ran it and held my breath...
FOUR!!!??? you have to be KIDDING me!!! NOOO!!! it's going to try and put the data in some random field and corrupt the database AGAIN!
Oh well... I'll check the web interface in Opera to see what it's done...
\o/ YAY \o/ !!! It WORKED!!!
Thank you, thank you, thank you! I've been bashing my head on this all week, now it's Friday night, and I can go home, have a weekend, and stop thinking about it, not having to spend my own time on the weekend hacking around trying to find an answer!
/me hugs planetscape