Skip to main content

Using the HTTP Response

Using the HTTP Response

By default, when you invoke a web client method, you do so via HTTP. The HTTP response is then available as the HttpResponse property of the web client instance. This property is an instance of %Net.HttpResponseOpens in a new tab, which in turn has properties like the following:

  • Headers contains the headers of the HTTP response.

  • Data is an InterSystems IRIS multidimensional array that contains any data in the HTTP response.

  • StatusCode, StatusLine, and ReasonPhrase provide status information.

For details, see Using Internet Utilities or see the class documentation for %Net.HttpResponseOpens in a new tab.

FeedbackOpens in a new tab