Rewrites of urlread and urlwrite

Adding TIMEOUT to both url functions.
2,4K descargas
Actualizado 15 sep 2005

Sin licencia

Two days ago, on MATLAB Newsgroup, I found Greggory asking something about "urlread" which is lack of TIMEOUT capability. And such a deficiency often leads to an embarrassing and horriable situation that main function gets freezed easily when the network is busy or abnormal.

At the beginning, I tried to follow the asker by using a timer, but it failed finally. The reason I thought is that timer can not interrupt the
task being busy at all and yet MATLAB doesn't have a scheme for using multi-threads so far. Fortunately, I discovered another hope that a part of urlread is written in JAVA. So I tried to modify the urlread function by adding a "timeout" parameter, enabling it to automatically stop the request at a time the user specified.

Citar como

Fu-Sung Wang (2024). Rewrites of urlread and urlwrite (https://www.mathworks.com/matlabcentral/fileexchange/8474-rewrites-of-urlread-and-urlwrite), MATLAB Central File Exchange. Recuperado .

Compatibilidad con la versión de MATLAB
Se creó con R14SP2
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS Linux
Agradecimientos

Inspiración para: urlread2

Community Treasure Hunt

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

Start Hunting!
Versión Publicado Notas de la versión
1.0.0.0

It isn't optimised, so let me know if there is any bug.