Dicop::Client::LWP - a connector object for Dicop::Client using libwww



NAME

Dicop::Client::LWP - a connector object for Dicop::Client using libwww


SYNOPSIS

        use Dicop::Client;
        my $client = Dicop::Client->new ( via => 'LWP' );
        $client->work();                # never returns


REQUIRES

perl5.004, Exporter


EXPORTS

Exports nothing per default.


DESCRIPTION

This module represents a connector object for the client/proxy and manages the actual connection from the client/proxy to the server.


METHODS

new

Create a new object.

agent

Set/get the user agent string.

        my $agent = $ua->agent();
        $ua->agent('UserAgent/1.0');
          
        =head2 post
        

Given a server url and a parameter string, simulates a PUT request:

        $response = $ua->put('http://127.0.0.1:8888/',$params);

get

Given a server url and a parameter string, simulates a GET request:


        $response = $ua->get('http://127.0.0.1:8888/files/main');


BUGS


AUTHOR

(c) Bundesamt fuer Sicherheit in der Informationstechnik 1998-2006

DiCoP is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation.

See http://www.bsi.de/ for more information.