Hi Monks,
I am trying to send GET requests to REST application
that demands custom headers authentication.
I tried setting headers with both REST::Client and WWW::Mechanize
but keep getting 401 error code response
Same url/method/headers do work using wget and curl
Any ideas?
Thanks!
use REST::Client; my $url = "http://foo/bar"; my $client = REST::Client->new(); $client->addHeader('u', 'ADMIN'); $client->addHeader('p', 'ADMIN'); $client->GET($url); print $client->responseContent();
In reply to REST::Client GET with custom http headers authentication by tf
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |