主要内容

HTTP Interface

Communicate with Web service from MATLAB®使用HTTP(超文本传输​​协议)

The MATLAB RESTful web services functionswebread,websave,webwrite.和支持功能万博1manbetxweboptions, allow non-programmers to access many web services using HTTP GET and POST methods. For information about these functions, seeWeb Access.

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 in互联网工程任务力量(IETF®)标准。该接口包含实现HTTP消息传递和实用程序的语义的函数,以处理发送和接收的数据。它还包含处理,传输和接收消息所需的万博1manbetx支持类。

Classes

展开全部

matlab.net.http..RequestMessage HTTP请求消息
matlab.net.http..ResponseMessage http响应消息
matlab.net.http.message. HTTP请求或响应消息
matlab.net.http.messageType. HTTP消息类型
matlab.net.http.message.Body HTTP消息的主体
matlab.net.http..ProtocolVersion HTTP protocol version
matlab.net.http..RequestLine First line of HTTP request message
matlab.net.http..RequestMethod http请求方法
matlab.net.http..StartLine First line of HTTP message
matlab.net.http.statusclass. HTTP响应的状态类
matlab.net.http.statuscode. Status code in HTTP response
matlab.net.http.statusline. 第一行HTTP响应消息
matlab.net.http.headerfield.headerfield. HTTP消息的标题字段
matlab.net.http..field.AcceptField HTTP Accept header field
matlab.net.http..field.AuthenticateField http www-验证或代理身份验证标题字段
matlab.net.http.field.authenticationInfofield. 响应消息中的HTTP身份验证 - 信息标题字段
matlab.net.http..field.AuthorizationField HTTP授权或代理授权标题字段
matlab.net.http..field.ContentDispositionField HTTP Content-Disposition header field
matlab.net.http.field.contentLengthField. HTTP Content-Length字段
matlab.net.http..field.ContentLocationField HTTP Content-Location标头字段
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支持参数万博1manbetx化语法
matlab.net.http..field.HTTPDateField 包含日期的HTTP标头字段
matlab.net.http..field.IntegerField Base class for HTTP header fields containing nonnegative integers
matlab.net.http.field.locationfield. HTTP位置标题字段
matlab.net.http.field.Mediarangefield. Base class for HTTP Content-Type and Accept header fields
matlab.net.http..field.SetCookieField http set-cookie标题字段
matlab.net.http.field.ureirederferfield. 包含URI组件的HTTP标头字段的基类
matlab.net.http.io.contentConsumer. 用于HTTP消息有效载荷的消费者
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 将JSON输入转换为的内容消费者MATLAB数据
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. HTTP消息中的二进制数据的消费者
matlab.net.http.io.genericConsumer. Consumer for multiple content types in HTTP messages
matlab.net.http.io.contentProvider.ContentProvider. 用于HTTP消息有效载荷的ContentProvider
matlab.net.http.io.fileprovider. ContentProvider to send files
matlab.net.http.io.formprovider.io.formprovider. 发送表单数据的ContentProvider
matlab.net.http.io..MultipartFormProvider ContentProvider发送多部分/表单数据消息
matlab.net.http.io.stringProvider. ContentProvider to sendMATLAB
matlab.net.http.io.jsonprovider.io.jsonprovider. ContentProvider to sendMATLAB数据作为JSON字符串
matlab.net.http.iimageprovider.imageprovider. ContentProvider to sendMATLAB图像数据
matlab.net.http.io.multipartprovider. ContentProvider发送多级/混合HTTP消息
matlab.net.http.io.genericprovider. 用于HTTP有效载荷的通用ContentProvider
matlab.net.http.authenticationscheme. HTTP Authentication scheme
matlab.net.http..AuthInfo HTTP消息中的身份验证或授权信息
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历史记录记录
matlab.net.http..MediaType 互联网媒体类型用于HTTP头
matlab.net.http..ProgressMonitor Progress monitor for HTTP message exchange
matlab.net.URI 统一资源标识符(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.base64 encode. BASE 64字节字符串或向量的编码

包装

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

Topics

什么是HTTP接口?

Use the HTTP interface to issue properly structured HTTP requests and process their responses.

发送和接收HTTP消息

This example shows how to send a request to a server that involves redirection and might require digest authentication.

HTTP Data Type Conversion

MATLAB HTTP界面自动将HTTP消息中使用的数据类型转换为来自MATLAB类型。

管理cookie.

如何在HTTP消息中管理cookie。

Display Progress Monitor for HTTP Message

如何实现进度监视器。

Display Streamed Data in Figure Window

使用自定义StringConsumer从网站流数据,并在图窗口中显示结果。

Display JPEG Images Streamed from IP Camera

Stream video from a website using a MultipartConsumer.

Send Multipart Form Messages

使用MultiPart表单消息的提示。

Manually Redirect HTTP Messages

使用cookie手动处理重定向。