Apache – How to pass JSON using WWW::Mechanize in perl
We are using WWW::Mechanize to send json data to our api. My code is below. #!/usr/local/bin/perl use WWW::Mechanize; sub get_csrf_token { my $sso = shift; my $referer = shift; my @cookie_items; my $rsp = $sso->get($referer); my $set_cookie = $rsp->header('set-cookie'); if…