<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: Expanding urlread capabilities	</title>
	<atom:link href="https://undocumentedmatlab.com/articles/expanding-urlreads-capabilities/feed" rel="self" type="application/rss+xml" />
	<link>https://undocumentedmatlab.com/articles/expanding-urlreads-capabilities?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=expanding-urlreads-capabilities</link>
	<description>Professional Matlab consulting, development and training</description>
	<lastBuildDate>Tue, 06 Jun 2017 19:39:20 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.7.2</generator>
	<item>
		<title>
		By: Yingyun		</title>
		<link>https://undocumentedmatlab.com/articles/expanding-urlreads-capabilities#comment-408085</link>

		<dc:creator><![CDATA[Yingyun]]></dc:creator>
		<pubDate>Tue, 06 Jun 2017 19:39:20 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=2808#comment-408085</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/expanding-urlreads-capabilities#comment-245113&quot;&gt;cglopez&lt;/a&gt;.

Can I ask if you solve the problem by using urlread2 to do a authentication? thank you]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/expanding-urlreads-capabilities#comment-245113">cglopez</a>.</p>
<p>Can I ask if you solve the problem by using urlread2 to do a authentication? thank you</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: HTTP Requests with Matlab &#124; Tasos Writes		</title>
		<link>https://undocumentedmatlab.com/articles/expanding-urlreads-capabilities#comment-351678</link>

		<dc:creator><![CDATA[HTTP Requests with Matlab &#124; Tasos Writes]]></dc:creator>
		<pubDate>Sun, 21 Jun 2015 12:55:36 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=2808#comment-351678</guid>

					<description><![CDATA[[...] if you want more advanced features checkout urlread2 by Jim Hokanson. It is extending urlread and makes it very easy to do that stuff with Matlab. [...]]]></description>
			<content:encoded><![CDATA[<p>[&#8230;] if you want more advanced features checkout urlread2 by Jim Hokanson. It is extending urlread and makes it very easy to do that stuff with Matlab. [&#8230;]</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: JosephAgnes		</title>
		<link>https://undocumentedmatlab.com/articles/expanding-urlreads-capabilities#comment-351460</link>

		<dc:creator><![CDATA[JosephAgnes]]></dc:creator>
		<pubDate>Wed, 17 Jun 2015 14:16:01 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=2808#comment-351460</guid>

					<description><![CDATA[Hi, how can I create a persistent http session in MATLAB? I first do a login to the website homepage which requires password to open it. And then in order to manipulate other pages I could change the URLs at my choice but staying logged in! Thanks and please comment.]]></description>
			<content:encoded><![CDATA[<p>Hi, how can I create a persistent http session in MATLAB? I first do a login to the website homepage which requires password to open it. And then in order to manipulate other pages I could change the URLs at my choice but staying logged in! Thanks and please comment.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: HTTP Requests with Matlab &#124; Tasos Sangiotis		</title>
		<link>https://undocumentedmatlab.com/articles/expanding-urlreads-capabilities#comment-349129</link>

		<dc:creator><![CDATA[HTTP Requests with Matlab &#124; Tasos Sangiotis]]></dc:creator>
		<pubDate>Mon, 11 May 2015 12:06:59 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=2808#comment-349129</guid>

					<description><![CDATA[[...] you want more advanced features checkout urlread2 by Jim Hokanson. It is extending urlread and makes it very easy todo that stuff with [...]]]></description>
			<content:encoded><![CDATA[<p>[&#8230;] you want more advanced features checkout urlread2 by Jim Hokanson. It is extending urlread and makes it very easy todo that stuff with [&#8230;]</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Joel		</title>
		<link>https://undocumentedmatlab.com/articles/expanding-urlreads-capabilities#comment-329108</link>

		<dc:creator><![CDATA[Joel]]></dc:creator>
		<pubDate>Mon, 04 Aug 2014 13:07:42 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=2808#comment-329108</guid>

					<description><![CDATA[Hello,

I am having performance issues with urlread and wonder whether urlread2 would be faster. A simple 35000 character webpage 

A=urlread(&#039;http://www.mathworks.com&#039;); 

takes about 700ms to read and this seems to be rather matlab/hardware/internet connection independent as other people have gotten similar results. I posted my original question here:

http://www.mathworks.nl/matlabcentral/answers/144600-how-can-i-make-urlread-faster-problem-using-urlread2

So I am wondering if there are any ways to speed up urlread? Or is urlread2 significantly faster? Unfortunately I could not get urlread2 working in my old Matlab 7. It gave errors as explained in the linked question. 

I feel that performance should be much better. A simple Autohotkey command UrlDownloadToFile does this much faster but it is painful to make different programs operate together. 

Any help is greatly appreciated. Thank you for any help in advance!]]></description>
			<content:encoded><![CDATA[<p>Hello,</p>
<p>I am having performance issues with urlread and wonder whether urlread2 would be faster. A simple 35000 character webpage </p>
<p>A=urlread(&#8216;http://www.mathworks.com&#8217;); </p>
<p>takes about 700ms to read and this seems to be rather matlab/hardware/internet connection independent as other people have gotten similar results. I posted my original question here:</p>
<p><a href="http://www.mathworks.nl/matlabcentral/answers/144600-how-can-i-make-urlread-faster-problem-using-urlread2" rel="nofollow ugc">http://www.mathworks.nl/matlabcentral/answers/144600-how-can-i-make-urlread-faster-problem-using-urlread2</a></p>
<p>So I am wondering if there are any ways to speed up urlread? Or is urlread2 significantly faster? Unfortunately I could not get urlread2 working in my old Matlab 7. It gave errors as explained in the linked question. </p>
<p>I feel that performance should be much better. A simple Autohotkey command UrlDownloadToFile does this much faster but it is painful to make different programs operate together. </p>
<p>Any help is greatly appreciated. Thank you for any help in advance!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Tjarko		</title>
		<link>https://undocumentedmatlab.com/articles/expanding-urlreads-capabilities#comment-327340</link>

		<dc:creator><![CDATA[Tjarko]]></dc:creator>
		<pubDate>Thu, 03 Jul 2014 18:05:07 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=2808#comment-327340</guid>

					<description><![CDATA[Hi, I&#039;m trying to use the urlread2 function for sending PUT requests. I&#039;m new to webservices for that I need a little help.

I want to do this

&lt;pre lang=&#039;text&#039;&gt;
PUT http://[DEVICE_IP]:7979/rest/devices/battery/C23 HTTP/1.1
Host: [IP]
Content-type: text/html
Content-length: 4
1000
&lt;/pre&gt;

What do I have to do in Matlab to perform this action?]]></description>
			<content:encoded><![CDATA[<p>Hi, I&#8217;m trying to use the urlread2 function for sending PUT requests. I&#8217;m new to webservices for that I need a little help.</p>
<p>I want to do this</p>
<pre lang='text'>
PUT http://[DEVICE_IP]:7979/rest/devices/battery/C23 HTTP/1.1
Host: [IP]
Content-type: text/html
Content-length: 4
1000
</pre>
<p>What do I have to do in Matlab to perform this action?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: J Syn		</title>
		<link>https://undocumentedmatlab.com/articles/expanding-urlreads-capabilities#comment-327197</link>

		<dc:creator><![CDATA[J Syn]]></dc:creator>
		<pubDate>Mon, 30 Jun 2014 14:22:29 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=2808#comment-327197</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/expanding-urlreads-capabilities#comment-327191&quot;&gt;J Syn&lt;/a&gt;.

Just an update to my previous post - I have tried running the same code on another machine and had no issues at all. I have no idea what happened, but it must have been my own fault somehow. The GET functionality is so much faster using this than the urlread method supplied with Matlab. Jim was also fantastic, replying to my e-mail query right away.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/expanding-urlreads-capabilities#comment-327191">J Syn</a>.</p>
<p>Just an update to my previous post &#8211; I have tried running the same code on another machine and had no issues at all. I have no idea what happened, but it must have been my own fault somehow. The GET functionality is so much faster using this than the urlread method supplied with Matlab. Jim was also fantastic, replying to my e-mail query right away.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: J Syn		</title>
		<link>https://undocumentedmatlab.com/articles/expanding-urlreads-capabilities#comment-327191</link>

		<dc:creator><![CDATA[J Syn]]></dc:creator>
		<pubDate>Mon, 30 Jun 2014 10:03:29 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=2808#comment-327191</guid>

					<description><![CDATA[I was using urlread2 for the first time yesterday and encountered a very strange error. The script was very simple - containing just one line calling the urlread2 function. The script froze during execution, and Matlab produced errors relating to the &quot;rmdir&quot; command. When I checked the folder I was working in, all files and folders except the currently running script file had been deleted. Can you offer any explanation as to why this might have happened? Please see the Matlab output below:

&quot;Operation terminated by user during urlread2 (line 199)
In TestDatabaseRead (line 3)
        str =
        urlread2(&#039;http://localhost:13595/I/GetLocalData&#039;); 
Error using rmdir&quot;]]></description>
			<content:encoded><![CDATA[<p>I was using urlread2 for the first time yesterday and encountered a very strange error. The script was very simple &#8211; containing just one line calling the urlread2 function. The script froze during execution, and Matlab produced errors relating to the &#8220;rmdir&#8221; command. When I checked the folder I was working in, all files and folders except the currently running script file had been deleted. Can you offer any explanation as to why this might have happened? Please see the Matlab output below:</p>
<p>&#8220;Operation terminated by user during urlread2 (line 199)<br />
In TestDatabaseRead (line 3)<br />
        str =<br />
        urlread2(&#8216;http://localhost:13595/I/GetLocalData&#8217;);<br />
Error using rmdir&#8221;</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Yair Altman		</title>
		<link>https://undocumentedmatlab.com/articles/expanding-urlreads-capabilities#comment-306084</link>

		<dc:creator><![CDATA[Yair Altman]]></dc:creator>
		<pubDate>Thu, 26 Dec 2013 08:42:39 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=2808#comment-306084</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/expanding-urlreads-capabilities#comment-306078&quot;&gt;ibrahim&lt;/a&gt;.

@ibrahim - this is not a general-purpose blog but one that is devoted to undocumented and advanced aspects of Matlab. With regular Matlab questions you will find more luck at the &lt;a href=&quot;http://www.mathworks.com/matlabcentral/answers/&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;Matlab answers forum&lt;/a&gt;.

I would try checking if the web-page is accessible (and accepts POST queries) using a regular browser, before trying in Matlab&#039;s &lt;i&gt;&lt;b&gt;urlread&lt;/b&gt;&lt;/i&gt;. It&#039;s a localhost server so maybe you forgot to turn it on. Also, maybe it works via cookies, which &lt;i&gt;&lt;b&gt;urlread&lt;/b&gt;&lt;/i&gt; does not support.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/expanding-urlreads-capabilities#comment-306078">ibrahim</a>.</p>
<p>@ibrahim &#8211; this is not a general-purpose blog but one that is devoted to undocumented and advanced aspects of Matlab. With regular Matlab questions you will find more luck at the <a href="http://www.mathworks.com/matlabcentral/answers/" target="_blank" rel="nofollow">Matlab answers forum</a>.</p>
<p>I would try checking if the web-page is accessible (and accepts POST queries) using a regular browser, before trying in Matlab&#8217;s <i><b>urlread</b></i>. It&#8217;s a localhost server so maybe you forgot to turn it on. Also, maybe it works via cookies, which <i><b>urlread</b></i> does not support.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: ibrahim		</title>
		<link>https://undocumentedmatlab.com/articles/expanding-urlreads-capabilities#comment-306078</link>

		<dc:creator><![CDATA[ibrahim]]></dc:creator>
		<pubDate>Thu, 26 Dec 2013 07:43:14 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=2808#comment-306078</guid>

					<description><![CDATA[I&#039;m trying to post some data to local web server. I could not get any result. could you help me to identify the problem in my code.
&lt;pre lang=&#039;matlab&#039;&gt;
clear
clc
uname=&#039;ibrahim&#039;;
email=&#039;test@tes.com&#039;;
reemail= email;
pswd=&#039;1234&#039;;
confirm= pswd;
counter=1;
submit=&#039;submit&#039;;

while (counter &lt; 2)
    username=[uname,num2str(counter)];
    password=pswd;
    params = {username,password,email,reemail,confirm,&#039;submit&#039;};
    s=urlread(&#039;http://localhost/new_sdas/php_code/register.php&#039;,&#039;POST&#039;,params)
    counter=counter+1;
end
&lt;/pre&gt;&lt;/pre&gt;]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m trying to post some data to local web server. I could not get any result. could you help me to identify the problem in my code.</p>
<pre lang='matlab'>
clear
clc
uname='ibrahim';
email='test@tes.com';
reemail= email;
pswd='1234';
confirm= pswd;
counter=1;
submit='submit';

while (counter < 2)
    username=[uname,num2str(counter)];
    password=pswd;
    params = {username,password,email,reemail,confirm,'submit'};
    s=urlread('http://localhost/new_sdas/php_code/register.php','POST',params)
    counter=counter+1;
end
</pre>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
