Skip to Main Content Skip to Search
Login
File Exchange
MATLAB Newsgroup
Link Exchange
  Blogs  
 Contest 
MathWorks.com

Thread Subject: urlread timeout

Subject: urlread timeout

From: Michele

Date: 02 Mar, 2008 01:45:04

Message: 1 of 1

urlread has a serious problem, at least in R13, in that if
the url you're trying to read doesn't answer, urlread just
hangs without returning an error. In fact the only way to
regain control is to open the process manager and kill Matlab.

I tried Fu-Sung Wang's urlread2 which claims to fix this but
it generates the following error:

img = urlread2('http://192.168.0.107/image.jpg', [], [], 5);
??? Undefined variable 'com' or class
'com.mathworks.mlwidgets.html.HTMLPrefs.setProxySettings'.

Error in ==> C:\matlab\toolbox\matlab\iofun\urlread2.m
On line 41 ==>
com.mathworks.mlwidgets.html.HTMLPrefs.setProxySettings

I tried saying

com.mathworks.services.Prefs.setStringPref('HelpSelectedProducts','MATLAB');

and then restarting Matlab as suggested in another post, but
that had no effect.

The author isn't answering his email and I'm really stuck.
Does anyone have a way to read web pages without hanging if
the url is down? Any help would be greatly appreciated.
Thanks.

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
urlread Michele 01 Mar, 2008 20:50:05
urlread2 Michele 01 Mar, 2008 20:50:05
timeout Michele 01 Mar, 2008 20:50:05
rssFeed for this Thread

envelope graphic E-mail this page to a colleague

Public Submission Policy
NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Disclaimer prior to use.
Related Topics