David Mitchell wrote:
David Mitchell wrote:
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 Arneson
http://tomarneson.com
mw=: sdcheck sdgethostbyname 'minutewar.gpsgames.org'
mw
┌─┬─────────────┐
│2│205.214.86.20│
└─┴─────────────┘
0 webget 'minutewar.gpsgames.org/Game032/board.htm'
HTTP/1.1 404 Not Found
It looks like webget needs a bit of help, IE can access the URL just
fine.
A quick and dirty:
...
A note on the previous suggestion. Here is how it looks in action:
0 webget 'minutewar.gpsgames.org/Game032/board.htm'
HTTP/1.1 200 OK
Date: Mon, 14 Aug 2006 00:07:36 GMT
Server: Apache
Last-Modified: Sun, 13 Aug 2006 22:57:11 GMT
ETag: "310577-39e2-44dfae47"
Accept-Ranges: bytes
Content-Length: 14818
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Content-Type: text/html
<HTML><HEAD><META HTTP-EQUIV="Expires" CONTENT="Thu, 01 Dec 1990 12:00:00
GMT"><META HTTP-EQUIV="cache-control" content="no-cache"><BODY><PRE>
,,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59
0,,W,W,W,W,W,W,W,W,W,,E,E,E,E,E,E,E,E,E,E,E,E,E,E,,,,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,,0
1,,W,W,W,W,W,W,W,W,W,,E,E,E,E,E,E,E,E,E,E,E,E,E,E,,,,W,W,W,"W1
harleydavidsonandy 2006/08/12 12:22:47 48.024117 11.951600 1.655
30.814",W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,,1
2,,W,W,W,W,W,W,W,W,W,S,E,E,E,E,E,E,E,E,E,E,E,E,E,E,,,,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,,2
3,,W,W,W,W,W,W,W,S,S,S,S,S,E,"E1 david brew 2006/08/05 17:20:31 -30.057450
-51.218267 3.362 13.093",E,E,E,E,E,E,"E1 david brew 2006/08/11 03:23:20
-30.057450 -51.334933 3.458
20.685",E,E,E,,,,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,W,...
...
It does add an annoying delay to the download, but it does get the data.
The change is from using HTTP 1.0 to use HTTP 1.1 GET format.
--
Regards,
David Mitchell
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm