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 CenterFile Exchange에서 Downloads에 대해 자세히 알아보기

제품


릴리스

R2025b

Community Treasure Hunt

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

Start Hunting!

Translated by