Here is a nice simple but robust way to retrieve the contents of a URL from J:
(may need some adjustment to work on Macs).

   require 'task'
   WGET=: (jpath '~tools/ftp/')&,^:(-.IFUNIX) 'wget'
   WGETOPTS=: ' -q -O - '
   getHTTP=: spawn WGET , WGETOPTS , ]

If you set up your .wgetrc file options correctly then it will handle proxies 
etc too.

   data=: getHTTP 
'http://gmane.org/output-rate.php?group=gmane.comp.lang.j.programming'
   85{.dat
date posting-rate spam-rate
20060212 7 0
20060213 18 0
20060214 8 0
20060215 3 0

   jhome=: getHTTP 'http://www.jsoftware.com'
   280{. jhome
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 
"http://www.w3.org/TR/html4/loose.dtd";>
<html>
<head>
<meta http-equiv="Content-type" content="text/html;charset=UTF-8">
<title>J Home</title>
<link rel="stylesheet" href="./jweb.css" type="text/css">
</head>

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to