Send HTTP POST request in Java with Basic Auth and request body – Apache
I am trying to send an HTTP request through Java to a ServiceNow REST API and create an event. I have this working in Postman with: URL: POST https://<domain>.service-now.com/api/now/table/em_event Body: { "source":"Postman", "node":"Codys Mac", "type":"Test", "resource":"Test", "metric_name":"Testing", "event_class":"Test", "severity":"4", "description":"This…