The MATLAB® HTTP Interface provides functionality to issue properly structured HTTP
requests and process their responses. You can also use the RESTful web services functions, webread
and webwrite
, to make HTTP requests. However,
some interactions with a web service are more complex and require functionality not
supported by these functions.
The HTTP interface is designed for programmatic use in scripts and functions. The
interface is an object model for HTTP data structures. It includes classes for messages,
their headers and fields, and other entities defined in the Internet Engineering Task
Force (IETF®) standards. For more information, see the Request for Comments (RFC)
documents RFC
7230
, RFC 7231
, RFC 7235
,
RFC
2617
and RFC 6265
. The interface contains functions that
implement semantics of HTTP messaging and utilities for processing the data sent and
received. It also contains support classes required to process, transmit, and receive
messages.
The interface is based on the HTTP/1.1 protocol.