. . . $UA->cookie_jar->add_cookie_header(); $resp = $UA->post ( $actionUrl, @ns_headers, 'Content_type' => 'application/x-www-form-urlencoded', 'Content' => [ <... a bunch of stuff ...> ] ); . . .