Thread: What can I do?
View Single Post
Old 01-11-2002, 10:53 AM  
spacedog
Yes that IS me. Bitch.
 
Industry Role:
Join Date: Nov 2001
Posts: 14,149
Quote:
Originally posted by Brian911:
he wants to redirect by USER AGENT, spacedog

lol

Code:
use POE;
    use POE::Component::Client::UserAgent;
    POE::Component::Client::UserAgent -> new;
    $postback = $session -> postback ('response');
    $request = HTTP::Request -> new (GET => $url);
    $poe_kernel -> post (useragent => request =>
        { request => $request, response => $postback });
    sub response
    {
        my ($request, $response, $entry) = @{$_[ARG1]};
        print $response -> status_line;
        $_[KERNEL] -> post (useragent => 'shutdown');
    }
spacedog is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote