matlab.net.http.field.AuthorizationField Class
Namespace: matlab.net.http.field
Superclasses: matlab.net.http.HeaderField
HTTP Authorization or Proxy-Authorization header field
Description
An AuthorizationField object contains credentials in a request message in
response to a challenge from a server in an AuthenticateField. The credentials
are in the form of an AuthInfo object. For more information, see RFC 7235
section 4.2 Authorization and section 4.4 Proxy-Authorization on the RFC Editor
website.
MATLAB® automatically creates this field when:
HTTPOptions.Authenticateproperty istrue(default) in a request message.You have specified appropriate credentials in the
HTTPOptions.Credentialsproperty.MATLAB supports the authentication scheme requested by the server.
You create this field explicitly when you disable automatic authentication or implement an
unsupported authentication protocol. If you create this field explicitly, then set the
Value property to a valid authorization string or an
AuthInfo object.
To see the AuthorizationField that was sent to the server for automatic
authentication, examine the completed request or history arguments returned by the
RequestMessage.send method.
Creation
Description
Properties
Methods
Examples
Version History
Introduced in R2016b