Use HTTP withMATLAB
The MATLAB®RESTful web services functionswebread
,websave
,webwrite
, and the support functionweboptions
allow 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.
Classi
Funzioni
matlab.net.base64decode |
Base 64 decoding of string |
matlab.net.base64encode |
Base 64 encoding of byte string or vector |
Pacchetti
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 |
Argomenti
- What Is the HTTP Interface?
Use the HTTP interface to issue properly structured HTTP requests and process their responses.
- 发送and Receive HTTP Messages
This example shows how to send a request to a server that involves redirection and might require digest authentication.
- HTTP Data Type Conversion
The MATLAB HTTP interface automatically converts data types used in HTTP messages to and from MATLAB types.
- Manage Cookies
How to manage cookies in HTTP messages.
- Display Progress Monitor for HTTP Message
How to implement a progress monitor.
- Display Streamed Data in Figure Window
Stream data from a website using a custom StringConsumer and display the results in a figure window.
- Display JPEG Images Streamed from IP Camera
Stream video from a website using a MultipartConsumer.
- 发送Multipart Form Messages
Tips for using multipart form messages.
- Manually Redirect HTTP Messages
Use cookies to manually handle redirects.