Matlab HTTP user agent

Get Matlab HTTP user agent, with this Matlab script.

Some servers may block Matlab download traffic such as websave(). A web browser from the same computer may work–this is a symptom of server user agent blocking. This script demonstrates setting a custom HTTP user agent using weboptions() to get around servers that block non-allow-listed user agents.


Python urllib.request can also set user agent.