The syntax for HTTP::Request's "new" method requires arguments in pairs, so my previous suggestion was wrong.
It should have been:
The "Accept" and "GET" can optionally be quoted.my $req = HTTP::Request->new(GET => $endpoint, Accept => 'application/xml');
...it is unhealthy to remain near things that are in the process of blowing up. man page for WARP, by Larry Wall
In reply to Re^5: Consuming A Web Service
by NetWallah
in thread Consuming A Web Service
by pkupnorth
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |