MathGroup Archive 2006

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Using sockets for "downloader" application in Mathematica

  • To: mathgroup at
  • Subject: [mg64314] Re: Using sockets for "downloader" application in Mathematica
  • From: "John Jowett" <John.Jowett at>
  • Date: Sat, 11 Feb 2006 03:32:44 -0500 (EST)
  • Organization: CERN - European Laboratory for Particle Physics
  • References: <dshfkb$hob$>
  • Sender: owner-wri-mathgroup at

I knew about using Import with URLs but had the impression that it was 
limited to a restricted class of URLs. Examples like this one give me an 

Java::excptn: A Java exception occurred: The filename, 
\ directory name, or volume label syntax is incorrect
at Method)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(\

But obviously they are working for other people. Is there something wrong 
with my setup of Mathematica 5.2 (or Java, which I know less about) on 
Windows XP ?

I did find that the GetURL.nb Jlink example notebook works fine with such 

Can anyone help ?

John Jowett
<Mitch.Stonehocker at> wrote in message 
news:dshfkb$hob$1 at
> As an example this works for me...
> Import["
> 00&d=01&e=9&f=2006&g=m&ignore=.csv","CSV"]
> Cheers,
> Mitch Stonehocker
> -----Original Message-----
> From: Renan [mailto:renan.birck at]
To: mathgroup at
> Subject: [mg64314]  Using sockets for "downloader" application in
> Mathematica
> Hello,
> I have a Mathematica program which will read data from a file.
> The file is in a Web server and so must be retrieved,
> so I use
> !"wget http://URL/filename";
> In Linux this is OK, but in Windows this is a source of trouble for me,
> as Windows doesn't have a 'wget' by default.
> So, is there some way to implement a "downloader" for a file in
> Mathematica?
> Running Mathematica 5.2, Windows XP.
> Thanks,
> Renan.

  • Prev by Date: Re: Overriding Mathematica function Print
  • Next by Date: Re: Re: Comparison of Mathematica on Various Computers
  • Previous by thread: Re: Using sockets for "downloader" application in Mathematica
  • Next by thread: Re: Using sockets for "downloader" application in Mathematica