Here is a quick example: 
 /* HTTP POST in DS2 */
proc ds2;
data _null_;
  method init();
    declare package http h();
    declare varchar(1024) headers body;
    declare int rc status;
h.createPostMethod('https://xxxxxxxxxxx');
h.setRequestContentType('application/json; charset=utf-8');
h.addRequestHeader('Accept', 'application/json');
h.addRequestHeader('VERSION', '2');
h.addRequestHeader('API-KEY', 'xxxxxxxxxxxxxxxxxxxxxxxxxxx');  
h.SetRequestBodyAsString('{"identifier": "xxxxx","password": "xxxxxxxxx}');
h.executeMethod();
status = h.getStatusCode();
	if status = 200 then do;
		h.getResponseHeadersAsString(headers, rc);
		h.getResponseBodyAsString(body, rc );
		put headers;
		put body;
	end;
	h.delete();
  end;
enddata; run;
quit;
 
 Example also can be found here: 
 https://go.documentation.sas.com/?docsetId=masag&docsetTarget=n1hljz5qvahutgn17p3n00l11mo5.htm&docsetVersion=5.4&locale=en 
						
					
					... View more