Re: Read HTML Page? [message #27424] |
Tue, 23 October 2001 19:45  |
Joseph B. Gurman
Messages: 31 Registered: April 2000
|
Member |
|
|
Andrew -
At the risk of being accuysed of a very bad pun, too cool!
Joe Gurman
In article <3BD60718.2AC111FF@dsto.defence.gov.au>, Andrew Cool
<andrew.cool@dsto.defence.gov.au> wrote:
> Holger Nies wrote:
>>
>> Hallo!
>> I'm looking for a procedure, I can use to read an Internet page in IDL.
>> Is there anybody, who has experience in this area?
>> Thank You.
>>
>> Holger
>
> Hallo Holger,
>
>
> I've emailed you an IDL GUI Web Browser (21kB) that I wrote using IDL's
> Socket routine - prompted by Mr Markwardt's post many moons ago.
>
> If you specify just a Web site name, e.g. www.rsinc.com, you'll
> get the *basic* HTML for that page, both as text, and displayed
> in IE or Netscape. Note, it's simple, basic, and does suck down
> all the associated images specified in the HTML.
>
> Alternatively, you can nominate a specific file at a URL, e.g.
> a .EXE, or .ZIP, or JPG/GIF/etc, and that file will zoom back,
> and if it's a common image format, will hopefully be automagically
> displayed.
>
> It even attempts to call your virus scanner software.
>
> Obviously you'll need to edit the code to suit your image display
> and virus scanner software.
>
> This package works through the firewall wall here nicely.
>
> Lots of room for fiddling to your heart's content!
>
>
> Andrew
|
|
|
Re: Read HTML Page? [message #27426 is a reply to message #27424] |
Tue, 23 October 2001 17:11   |
Andrew Cool
Messages: 219 Registered: January 1996
|
Senior Member |
|
|
Holger Nies wrote:
>
> Hallo!
> I'm looking for a procedure, I can use to read an Internet page in IDL.
> Is there anybody, who has experience in this area?
> Thank You.
>
> Holger
Hallo Holger,
I've emailed you an IDL GUI Web Browser (21kB) that I wrote using IDL's
Socket routine - prompted by Mr Markwardt's post many moons ago.
If you specify just a Web site name, e.g. www.rsinc.com, you'll
get the *basic* HTML for that page, both as text, and displayed
in IE or Netscape. Note, it's simple, basic, and does suck down
all the associated images specified in the HTML.
Alternatively, you can nominate a specific file at a URL, e.g.
a .EXE, or .ZIP, or JPG/GIF/etc, and that file will zoom back,
and if it's a common image format, will hopefully be automagically
displayed.
It even attempts to call your virus scanner software.
Obviously you'll need to edit the code to suit your image display
and virus scanner software.
This package works through the firewall wall here nicely.
Lots of room for fiddling to your heart's content!
Andrew
------------------------------------------------------------ ---------
Andrew D. Cool .->-.
Electromagnetics & Propagation Group `-<-'
Surveillance Systems Division Transmitted on
Defence Science & Technology Organisation 100% recycled
PO Box 1500, Salisbury electrons
South Australia 5108
Phone : 061 8 8259 5740 Fax : 061 8 8259 6673
Email : andrew.cool@dsto.defence.gov.au
------------------------------------------------------------ ---------
|
|
|
|
Re: Read HTML Page? [message #27447 is a reply to message #27443] |
Tue, 23 October 2001 11:11   |
Craig Markwardt
Messages: 1869 Registered: November 1996
|
Senior Member |
|
|
Holger Nies <nies@nv.et-inf.uni-siegen.de> writes:
> Hallo!
> I'm looking for a procedure, I can use to read an Internet page in IDL.
> Is there anybody, who has experience in this area?
> Thank You.
>
> Holger
>
Hi,
If you have a newer version of IDL, won't the SOCKET procedure work?
This little toy worked for me. Someone at RSI claimed that this
*shouldn't* work, but it does appear to.
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
Craig
--
------------------------------------------------------------ --------------
Craig B. Markwardt, Ph.D. EMAIL: craigmnet@cow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
------------------------------------------------------------ --------------
|
|
|
|
|
Re: Read HTML Page? [message #27520 is a reply to message #27424] |
Tue, 23 October 2001 20:48  |
Andrew Cool
Messages: 219 Registered: January 1996
|
Senior Member |
|
|
"Joseph B. Gurman" wrote:
>
> Andrew -
>
> At the risk of being accuysed of a very bad pun, too cool!
>
> Joe Gurman
>> If you specify just a Web site name, e.g. www.rsinc.com, you'll
>> get the *basic* HTML for that page, both as text, and displayed
>> in IE or Netscape. Note, it's simple, basic, and does suck down
>> all the associated images specified in the HTML.
Alas! Not as "cool" as first described! The word "not" failed to make an
appearance between "does" and "suck". So maybe the software does suck,
afterall ;-)
The text should read :-
>> If you specify just a Web site name, e.g. www.rsinc.com, you'll
>> get the *basic* HTML for that page, both as text, and displayed
>> in IE or Netscape. Note, it's simple, basic, and does *not* suck down
>> all the associated images specified in the HTML.
Although, with a little fiddling, this too could come to pass...
Andrew
------------------------------------------------------------ ---------
Andrew D. Cool .->-.
Electromagnetics & Propagation Group `-<-'
Surveillance Systems Division Transmitted on
Defence Science & Technology Organisation 100% recycled
PO Box 1500, Salisbury electrons
South Australia 5108
Phone : 061 8 8259 5740 Fax : 061 8 8259 6673
Email : andrew.cool@dsto.defence.gov.au
------------------------------------------------------------ ---------
|
|
|