Managing RESTful web sessions using cookies in MATLAB

11 ビュー (過去 30 日間)
Oliver Woodford
Oliver Woodford 2025 年 11 月 6 日 9:55
回答済み: Oliver Woodford 2025 年 11 月 7 日 0:08
I'm trying to download a file from the web, programmatically in MATLAB. The issue I have is that the file requires some authentication via session cookies.
MathWorks provide some example code on how to do this, but it's pretty clunky. What do you use when facing this issue? Are there any good open source (e.g. File Exchange) packages that you can recommend to handle the communication? I couldn't find any, which I found surprising.

採用された回答

Oliver Woodford
Oliver Woodford 2025 年 11 月 7 日 0:08
Instead of waiting for answers, I decided to write my own class to handle this. I also wrote a utility function to download public files from Google Drive, and a progress bar to visualize download progress. What a fun day!

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDownloads についてさらに検索

製品


リリース

R2025b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by