in reply to Re^2: Not sure how to use HTTP::Tiny
in thread Not sure how to use HTTP::Tiny
once when i was forced to do authorization myself (via tkx sockets) i used
which would make your callif ($args{user} || $args{password}) { use MIME::Base64; $tkxf_auth='Authorization: Basic '.encode_base64($args{user}.':' +.$args{password},''); }
use MIME::Base64; my $headers = { Accept => "application/json", 'Content-Type' => "application/json", Authorization => 'Authorization: Basic '.encode_base +64($args{user}.':'.$args{password},'') };
Edit: the real userid/passwords are stored in the hash %args under keys userid and password!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Not sure how to use HTTP::Tiny
by plx (Initiate) on May 21, 2018 at 19:57 UTC | |
by poj (Abbot) on May 21, 2018 at 20:50 UTC | |
by huck (Prior) on May 21, 2018 at 21:01 UTC | |
by plx (Initiate) on May 21, 2018 at 21:52 UTC |