[ic] HTTP POST

Marc Brevoort interchange-users@icdevgroup.org
Thu Feb 13 11:26:00 2003


Hello group,

I need to have the interchange server post a form to another server. A
perldoc lwpcook gives me the following script:

use LWP::UserAgent;
$ua = LWP::UserAgent->new;

my $req = HTTP::Request->new(POST =>
	'http://www.perl.com/cgi-bin/BugGlimpse');
$req->content_type('application/x-www-form-urlencoded');
$req->content('match=www&errors=0');

my $res = $ua->request($req);
print $res->as_string;

I've modified this to accept url and content, and tried to get it
working as tag and as subroutine included from catalog.cfg, but to my
frustration, all I'm getting is "Safe: require trapped by operation
mask" anytime I try to 'use LWP::UserAgent'. 

Hoping to once and for all overcome these kind of limitations, how can I
make LWP::UserAgent (or any other library) available to my subroutine
without disabling safe mode? Pointers to real examples are especially
appreciated.

Regards,

Marc Brevoort


-- 
Marc Brevoort

e-mail:	marc.brevoort@armazemdedados.com
web:	http://www.armazemdedados.com

Armazem de Dados, Informatica, Lda
Dep. Desenvolvimento
Tel. +351 21 910 83 10 / Fax. +351- 21 910 83 19