weboptions
- :
opts =weboptions()¶ - :
opts =weboptions(name, value, …)¶ Create a set of options for HTTP requests made by
webread,webwriteandwebsave.The properties are CharacterEncoding, UserAgent, Timeout, Username, Password, BasicAuthenticationMethod, KeyName, KeyValue, HeaderFields, ContentType, ContentReader, MediaType, RequestMethod, ArrayFormat and CertificateFilename. Property names are not case sensitive in the constructor and every assignment is validated.
Username/Passwordsupply Basic HTTP authentication.BasicAuthenticationMethodis"challenge"(default) or"preemptive"(R2026a). A Bearer token is supplied withHeaderFieldsas@{"Authorization", ["Bearer " token]}}.