def post_rsrc(rsrc, xml = '')
      validate_connected

      # convert CRs & to &#13;
      xml.gsub!(/\r/, '&#13;') if xml

      # send the data
      @last_http_response = @cnx[rsrc].post xml, content_type: 'text/xml', accept: :json
    rescue RestClient::ExceptionWithResponse => e
      handle_http_error e
    end
def post_rsrc(rsrc, xml = '')
      validate_connected

      # convert CRs & to &#13;
      xml.gsub!(/\r/, '&#13;') if xml

      # send the data
      @last_http_response = @cnx[rsrc].post xml, content_type: 'text/xml', accept: :json
    rescue RestClient::ExceptionWithResponse => e
      handle_http_error e
    end
Create a new JSS resource

 @param rsrc[String] the API resource being created, the URL part after 'JSSResource/'

 @param xml[String] the xml specifying the new object.

 @return [String] the xml response from the server.