At 10:00 -0500 2006/08/13, tom arneson wrote:
The lab works for me and I can read data from the J website, however when I
try the site from which I need the data it hits an error:
0 webget 'http://minutewar.gpsgames.org/Game032/board.htm'
|ENOTCONN: sdcheck
| (sderror y) 13!:8[3
When I use sdgethostbyname on the site which I want, I get:
mw=: sdcheck sdgethostbyname 'http://minutewar.gpsgames.org'
mw
--T---------------Ñ¢
ÑÝ2ÑÝ255.255.255.255ÑÝ
L-+----------------
Does anyone know what I should do?
Tom,
The "http://" bit of a URL isn't part of the internet/web
address, but rather a protocol indicator (including the
default of using port 80).
I just did the following and it seems to work OK.
]xx =: sdcheck sdgethostbyname 'minutewar.gpsgames.org'
+-+-------------+
|2|205.214.86.20|
+-+-------------+
However, this doesn't solve all your troubles --
0 webget 'minutewar.gpsgames.org/Game032/board.htm'
HTTP/1.1 404 Not Found
and I haven't been able to puzzle out why/where the 404 comes
from... I did look at the source for the board.htm page and it
is just text with almost no HTML wrapper - if this is a once
off thing for you, copying/pasting the source would work well
for this particular data, but I agree with you that there should
be an easy way to read it via sockets.
----
Two additional comments.
o Long live box drawing characters ... (sigh)
o A big THANK YOU to Eric for fixing the keyboard
shortcuts for copy/paste etc. to work correctly
on the MAC (first time I've tried JW in recent
beta releases) --- thank you, thank you!
- joey
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm