Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

Ovid (2709)

  (email not shown publicly)
AOL IM: ovidperl (Add Buddy, Send Message)

Stuff with the Perl Foundation. A couple of patches in the Perl core. A few CPAN modules. That about sums it up.

Journal of Ovid (2709)

Tuesday January 16, 2007
12:22 PM

Using WWW::Mechanize without a Web server

[ #32165 ]

This is the second time I've written this and the first time was years ago, so I don't recall what I was doing. I am writing our Web tests so we can pass a --noserver switch and run the code directly. That means overriding WWW::Mechanize::_make_request and pretending to be a Web server, knowing how to call your code, setting up the proper %ENV variables, following redirects, etc. So far I have this debugging information along with the tests:

> > > GETing
> > > POSTing
< < < Redirect requested to /
> > > GETing /
< < < Redirect requested to /
> > > GETing /

That tells me I've successfully logged in, handling cookie information and all that. Then the code blows up, but it's getting closer! When it's done, we'll be able to debug our Web tests much more easily.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.