postUrl: request parameter results in internal error -1

postUrl: request parameter results in internal error -1

When the request parameter is used, this code throws a Creator internal error -1. If the request parameter is not used, this code communicates with the web service OK. I feel like I just need another set of eyes looking at this code. Can anyone spot what is wrong with the request? Thanks.

  1.     response = map();
  2.     url = "https://domain.com/api/pas/agencies/" + "1234";
  3.     header = map();
  4.     header.put("Content-Type", "application/xml");
  5.     request = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>";
  6.     request = request + "<agency id=\"" + "1234" + "\">";
  7.     request = request + "<name>" + "Big Business" + "</name>";
  8.     request = request + "</agency>";

  9.     response = postUrl(url, request, header, false);
  10.     info response.get("responseText");
  11.     return response.get("responseCode");