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

Home » Public Forums » archive » Help with IDLnetURL
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Help with IDLnetURL [message #85212] Sun, 14 July 2013 08:05 Go to previous message
Matthew Argall is currently offline  Matthew Argall
Messages: 286
Registered: October 2011
Senior Member
All,

I am trying to use the IDLnetURL class to retrieve data from an HTTP site. The documentation on the host says it will return either a Zip file containing the data or a Text file named CAA_Error.log.x, depending on whether an error occurred or not. The problem is that IDL changes the filename of the saved file to 'idl.dat', or to whatever I specify with the FILENAME keyword. Is there any way to determine which file type has been retrieved and to name it accordingly?

The scheme they give is this:
url = ' http://caa.estec.esa.int/caa_query/?key1=value1&key2=val ue2&...'

So, what I am doing is:

oURL = Obj_New('IDLnetURL')
oURL -> SetProperty, URL_SCHEME='http', URL_HOST='caa.estec.esa.int'

[Widget to get input from user (i.e. username, password, etc.)]

oURL -> SetProperty, URL_PATH='caa_query/?key1=value1&key2=value2&...'

fname_returned = oURL -> Get()
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Open text files consecutively without knowing names
Next Topic: Re: IDL 8.2, read pixel value along a surface

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

Current Time: Fri Oct 10 05:09:05 PDT 2025

Total time taken to generate the page: 0.24235 seconds