Package: matlab.net.http.field
Superclasses: matlab.net.http.HeaderField
HTTP Authorization or Proxy-Authorization header field
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 a description of these fields, see
RFC 7235 section 4.2
and section
4.4.
MATLAB® automatically creates this field when:
HTTPOptions.Authenticate
property is true
(default) in a request message.
You have specified appropriate credentials in the
HTTPOptions.Credentials
property.
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.