[scilab-Users] URL read/write

Sylvestre Ledru sylvestre.ledru at scilab.org
Wed Apr 21 09:55:01 CEST 2010


Le mercredi 21 avril 2010 à 09:48 +0200, Samuel Gougeon a écrit :
> Hello,
> 
> ----- Message d'origine ----- 
> De : H Carl 
> Date : 20/04/2010 16:04: 
> > I have been unable to find any SciLab commands that would allow
> > reading/writing to a url.  Does that possibility exist?  It would be
> > very helpful for taking advantage of a site's webservices. 
> > Thanks.
> You can use Curl that is embedded into scilab.
> If you are using Scilab under Windows, here is an example :
> URL="http://www-cgi.uni-regensburg.de/WWW_Server/Dokumentation/misc/CURL/curl.pdf";      
> filename="curl_manual.pdf";
> rep=unix(SCI+"/tools/curl/curl -o "+filename+" "+URL)
> The file targetted by the URL will be recorded into the specified
> local file.
> If you are using another operating system, you just have to customize
> the
> path leading to the curl executable file.
Please note that we might remove curl one day without any notice. It is
not intended to be used for a Scilab application.

And note that it is not the case under Linux/Mac OS X.

Sylvestre





More information about the users mailing list