sub custom_post_alert_to_servicenow { my %servicenow; my $user = "admin"; my $pwd = "XxxXxXXXxxXX"; my $auth = "$user:$pwd"; my $request = qq({"short_description":"Akips custom site script","urgency":"2"}); $servicenow{url} = "https://xxxxxxxxx.service-now.com/api/now/table/incident"; $servicenow{basic_auth} = $auth; # Uncomment the following line to use proxy # $servicenow{proxy} = "http://xxxx:3128"; $servicenow{content_type} = "application/json"; $servicenow{method} = "post"; $servicenow{data} = $request; http_result (\%servicenow); }