[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: IDL sockets
- Subject: Re: IDL sockets
- From: m.hadfield(at)niwa.cri.nz ("Mark Hadfield")
- Date: Thu, 17 May 2001 04:17:27 +0000 (UTC)
- Mail-From: firstname.lastname@example.org from clam.niwa.cri.nz [184.108.40.206]
- Newsgroups: comp.lang.idl-pvwave
- Organization: Mailgate.ORG Server - http://www.Mailgate.ORG
- References: <3B034CDA.D5F7980C@mhl.nsw.gov.au>
- Xref: news.doit.wisc.edu comp.lang.idl-pvwave:24964
From: "George Constantinides" <email@example.com>
> Has any one used the SOCKET function successfully?
> I have tried the Craig Markwardt suggestion from an earlier post without
> any success.
> > socket, unit, 'cow.physics.wisc.edu', 80, /get_lun
> > printf, unit, 'GET http://cow.physics.wisc.edu/~craigm/idl/idl.html'
> > text = ''
> > while eof(unit) EQ 0 do begin
> > readf, unit, text
> > print, text
> > endwhile
> > free_lun, unit
I hadn't, but I was sufficiently intrigued to give it a go. I substituted a
local WWW site for Craig's and tried it out. It worked! Now all I need to
do is load the text into a file, open it in a browser, and I can surf the
Web with IDL!
I didn't bother trying to connect directly to Craig's site because we are
behind a firewall. Are you? If you are, then the HTTP queries have to be
sent to your proxy server and formulated a bit differently.
National Institute for Water and Atmospheric Research
Posted from clam.niwa.cri.nz [220.127.116.11]
via Mailgate.ORG Server - http://www.Mailgate.ORG