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

Home » Public Forums » archive » Queries of .asp pages with IDL SOCKET command
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Queries of .asp pages with IDL SOCKET command [message #42491] Tue, 08 February 2005 12:02
Wayne Landsman is currently offline  Wayne Landsman
Messages: 117
Registered: January 1997
Senior Member
This is a naive question and one only vaguely related to IDL, but I've
been hacking for hours on this without progress.

I often fetch information from Web sites using the IDL SOCKET command,
as implemented in webget.pro (
http://idlastro.gsfc.nasa.gov/ftp/pro/sockets/webget.pro) or Dominic
Zarro's socket procedures
(http://orpheus.nascom.nasa.gov/~zarro/idl/sockets.html).

The nice thing about these commands is that I just pass the same string
I would have typed directly into the Web page:

IDL>
print,webget(' http://vizier.u-strasbg.fr/cgi-bin/asu-tsv/?-source=gsc2.2&a mp;-c=m33&-c.rm=10')

(This returns all stars in a star catalog within 10 arc minutes of the
Galaxy M33, and I could have gotten the same result by typing the string
into the Web page.)


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.

Thanks, --Wayne Landsman
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: problems converting to Cylindrical (longitude-latitude)
Next Topic: IDLDE and for-next loops

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

Current Time: Wed Oct 08 11:07:51 PDT 2025

Total time taken to generate the page: 0.00375 seconds