in reply to RE: RE: Benevolent Ad Filter
in thread Benevolent Ad Filter

You can, in fact, use LWP to load just the first part of the GET request, by using a content-callback handler that throws an exception, cutting off any further action. Quoting from perldoc LWP::UserAgent:
The request can be aborted by calling die() in the call- back routine. The die message will be available as the "X-Died" special response header field.

-- Randal L. Schwartz, Perl hacker

Replies are listed 'Best First'.
RE: RE: RE: RE: Benevolent Ad Filter
by httptech (Chaplain) on Jun 09, 2000 at 02:57 UTC
    That would be great. I really would like to use LWP if possible. I liked the fact that it would handle redirects for me. However I don't know if the built-in redirect function would work if I call die() during the callback.