I used XML::Writer to create XML data, and want to post was is created to a jboss application on port 8180.
I found I couldn't use the OUTPUT => $output parameter correctly, like so:
my $browser = LWP::UserAgent->new;
my $response = $browser->post('http://localhost:8180/request');
my $writer = XML::Writer->new(
OUTPUT => $response,
NEWLINES => 0,
DATA_MODE => 1,
DATA_INDENT => 2,
HERE IS THE ERROR:
Can't locate object method "print" via package "HTTP::Headers" at (eva
+l 29) line 1.