hallikpapa has asked for the wisdom of the Perl Monks concerning the following question:
When I print @data, it shows the full XML. Doing a post like this ONLY sends the very first XML tag, not all of the contents in @data. However, if I do a post like this:my $browser = LWP::UserAgent->new; my $url = 'http://localhost:8180/request'; open(FILE,"output.xml"); my @data = <FILE>; my $response = $browser->post( $url, Content => @data ); #print @data;
It sends the entire contents, but ruins all of the tags.my $response = $browser->post( $url, Content => \@data);
Please help! Thanks.%3CcontactTn%3E%3C%2FcontactTn%3E%0A&++++++++++++++%3CcontactEmail%3E% +3C%2FcontactEmail%3E%0A=++++++++++++++%3Caddress%3E%0A&++++++++++++++ +++%3CbuildingNo%3E%3C%2F
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Sending XML data is simple right?
by erroneousBollock (Curate) on Nov 15, 2007 at 17:45 UTC | |
by Jenda (Abbot) on Nov 15, 2007 at 18:05 UTC | |
|
Re: Sending XML data is simple right?
by Jenda (Abbot) on Nov 15, 2007 at 18:01 UTC | |
|
Re: Sending XML data is simple right?
by samtregar (Abbot) on Nov 15, 2007 at 18:01 UTC | |
|
Re: Sending XML data is simple right?
by hallikpapa (Scribe) on Nov 15, 2007 at 18:29 UTC |