MATLAB Answers

specifying 'Timeout' in weboptions does not work

3 views (last 30 days)
Evgeny on 19 Oct 2015
Hi all!
I want have a 1 sec. timeout in my call to webwrite(). However, this code takes 30 sec. to execute before throwing an error.
webwrite('http://dummy', 'blah', weboptions('Timeout', 1))
What is even more weird, is that the call to "weboptions" without arguments shows that the default is 5 sec. (returns "Timeout: 5")
I am running Matlab 2015a, on OS X 10.10
Any idea, what could be the problem?


Sign in to comment.

Answers (0)

Community Treasure Hunt

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

Start Hunting!