|
|
| laziness, impatience, and hubris | |
| PerlMonks |
RE: RE: RE: Benevolent Ad Filterby merlyn (Sage) |
| on Jun 08, 2000 at 22:40 UTC ( [id://17236]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
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
In Section
Cool Uses for Perl
|
|
||||||||||||||||||||||||||||