Any reasonable agent (LWP::UserAgent or WWW::Mechanize are good choices) is going to handle the headers for you and the only thing special about them seems to be the dev token and maybe but not necesisarily the cookie. Without a spec I can't offer more but you should be able to add the dev token this way-
my $mech = WWW::Mechanize->new(); ... $mech->add_header(Authorization => "YOUR DEV KEY HERE"); ...
And you might have to also do a sign-in / authentication before doing your API calls to get an auth'd session cookie, but maybe not. Then you robustly and easily build API calls with URI or a subclass of it.
In reply to Re^3: Creating REST API
by Your Mother
in thread Creating REST API
by vit
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |