comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Queries of .asp pages with IDL SOCKET command
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Queries of .asp pages with IDL SOCKET command [message #42468 is a reply to message #42467] Wed, 09 February 2005 14:40 Go to previous messageGo to previous message
Dick Jackson is currently offline  Dick Jackson
Messages: 347
Registered: August 1998
Senior Member
Hi Wayne,

"Wayne Landsman" <landsman@sampa.gsfc.nasa.gov> wrote in message
news:cub6pn$559$1@skates.gsfc.nasa.gov...
>
> I often fetch information from Web sites using the IDL SOCKET command, as
> implemented in webget.pro [...]
>
> IDL>
> print,webget(' http://vizier.u-strasbg.fr/cgi-bin/asu-tsv/?-source=gsc2.2&a mp;-c=m33&-c.rm=10')
>
> [...]
>
> However, although active server pages (.asp) have a very similar
> appearance, a query that I successively type into the Web page, e.g.
>
> http://cas.sdss.org/astro/en/tools/search/x_radial.asp?ra=19 5.0&dec=2.5&radius=3&topnum=10&format=html
>
> will give an error message it I send the same string to webget.pro. I am
> hoping that I just need to add some extra formatting command to make this
> work.

If this suits you, you can use the URLread function in
external/objbridge/java/examples/urlread.pro:

IDL>
result=urlread(' http://cas.sdss.org/astro/en/tools/search/x_radial.asp?ra=19 5.0&dec=2.5&radius=3&topnum=10&format=html')

Yes, this starts up the IDL-Java bridge, so you must have Java installed.
And yes, this will work with IDL VM, as long as the Java class is available!
Further, this will even work with 'https' secure web pages. Seems to me that
Java's got a lot going for it.

Cheers,
--
-Dick

Dick Jackson / dick@d-jackson.com
D-Jackson Software Consulting / http://www.d-jackson.com
Calgary, Alberta, Canada / +1-403-242-7398 / Fax: 241-7392
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: ENVI glt doit problem
Next Topic: ASCII files with timestamps

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 11:43:53 PDT 2025

Total time taken to generate the page: 0.00395 seconds