Managing RESTful web sessions using cookies in MATLAB

11 views (last 30 days)
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.

Accepted Answer

Oliver Woodford
Oliver Woodford 19 minutes ago
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!

More Answers (0)

Categories

Find more on Downloads in Help Center and File Exchange

Products


Release

R2025b

Community Treasure Hunt

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

Start Hunting!