Main Content

Use HTTP withMATLAB

Communicate with Web services using HTTP (Hypertext Transfer Protocol)

The MATLAB®RESTful web services functionswebread,websave,webwrite, and the support functionweboptionsallow non-programmers to access many web services using HTTP GET and POST methods. For information about these functions, seeWeb Services.

However, some interactions with a web service are more complex and require functionality not supported by the RESTful web services functions. The MATLAB HTTP interface provides classes for writing web access applications. The interface includes classes for messages, their headers and fields, and other entities defined inThe Internet Engineering Task Force (IETF®)标准。我的界面包含功能mplement 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.

Classes

expand all

matlab.net.http.RequestMessage HTTP request message
matlab.net.http.ResponseMessage HTTP response message
matlab.net.http.Message HTTP request or response message
matlab.net.http.MessageType HTTP message type
matlab.net.http.MessageBody Body of HTTP message
matlab.net.http.ProtocolVersion HTTP protocol version
matlab.net.http.RequestLine First line of HTTP request message
matlab.net.http.RequestMethod HTTP request method
matlab.net.http.StartLine First line of HTTP message
matlab.net.http.StatusClass Status class of HTTP response
matlab.net.http.StatusCode Status code in HTTP response
matlab.net.http.StatusLine First line of HTTP response message
matlab.net.http.HeaderField Header field of HTTP message
matlab.net.http.field.AcceptField HTTP Accept header field
matlab.net.http.field.AuthenticateField HTTP WWW-Authenticate or Proxy-Authenticate header field
matlab.net.http.field.AuthenticationInfoField HTTP Authentication-Info header field in response message
matlab.net.http.field.AuthorizationField HTTP Authorization or Proxy-Authorization header field
matlab.net.http.field.ContentDispositionField HTTP Content-Disposition header field
matlab.net.http.field.ContentLengthField HTTP Content-Length field
matlab.net.http.field.ContentLocationField HTTP Content-Location header field
matlab.net.http.field.ContentTypeField HTTP Content-Type header field
matlab.net.http.field.CookieField HTTP Cookie header field
matlab.net.http.field.DateField HTTP Date header field
matlab.net.http.field.GenericField HTTP header field with any name and value
matlab.net.http.field.GenericParameterizedField GenericField to support parameterized syntax
matlab.net.http.field.HTTPDateField HTTP header field containing date
matlab.net.http.field.IntegerField Base class for HTTP header fields containing nonnegative integers
matlab.net.http.field.LocationField HTTP Location header field
matlab.net.http.field.MediaRangeField Base class for HTTP Content-Type and Accept header fields
matlab.net.http.field.SetCookieField HTTP Set-Cookie header field
matlab.net.http.field.URIReferenceField Base class for HTTP header fields containing URI components
matlab.net.http.io.ContentConsumer Consumer for HTTP message payloads
matlab.net.http.io.FileConsumer Consumer for files in HTTP messages
matlab.net.http.io.StringConsumer String consumer for HTTP payloads
matlab.net.http.io.JSONConsumer Content consumer that converts JSON input intoMATLABdata
matlab.net.http.io.ImageConsumer Consumer for image data in HTTP payloads
matlab.net.http.io.MultipartConsumer Helper for multipart content types in HTTP messages
matlab.net.http.io.BinaryConsumer Consumer for binary data in HTTP messages
matlab.net.http.io.GenericConsumer Consumer for multiple content types in HTTP messages
matlab.net.http.io.ContentProvider ContentProvider for HTTP message payloads
matlab.net.http.io.FileProvider ContentProvider to send files
matlab.net.http.io.FormProvider ContentProvider that sends form data
matlab.net.http.io.MultipartFormProvider ContentProvider to send multipart/form-data messages
matlab.net.http.io.StringProvider ContentProvider to sendMATLABstrings
matlab.net.http.io.JSONProvider ContentProvider to sendMATLABdata as JSON string
matlab.net.http.io.ImageProvider ContentProvider to sendMATLABimage data
matlab.net.http.io.MultipartProvider ContentProvider to send multipart/mixed HTTP messages
matlab.net.http.io.GenericProvider Generic ContentProvider for HTTP payloads
matlab.net.http.AuthenticationScheme HTTP Authentication scheme
matlab.net.http.AuthInfo Authentication or authorization information in HTTP messages
matlab.net.http.Cookie HTTP cookie received from server
matlab.net.http.CookieInfo HTTP cookie information
matlab.net.http.Credentials Credentials for authenticating HTTP requests
matlab.net.http.Disposition Results in HTTP log record
matlab.net.http.HTTPException Exception thrown by HTTP services
matlab.net.http.HTTPOptions Options controlling HTTP message exchange
matlab.net.http.LogRecord HTTP history log record
matlab.net.http.MediaType 互联网媒体类型用于HTTP头
matlab.net.http.ProgressMonitor Progress monitor for HTTP message exchange
matlab.net.URI Uniform resource identifier (URI)
matlab.net.ArrayFormat Convert arrays in HTTP queries
matlab.net.QueryParameter Parameter in query portion of uniform resource identifier (URI)

Functions

matlab.net.base64decode Base 64 decoding of string
matlab.net.base64encode Base 64 encoding of byte string or vector

Packages

matlab.net.http Summary of packages and classes inMATLABHTTP interface
matlab.net.http.field Summary of header field classes inMATLABHTTP interface
matlab.net.http.io Streaming content consumers and providers for HTTP messages

Topics