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

Home » Public Forums » archive » IDLnetURL to test for files
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: IDLnetURL to test for files [message #88107 is a reply to message #88105] Thu, 20 March 2014 14:14 Go to previous messageGo to previous message
Matthew Argall is currently offline  Matthew Argall
Messages: 286
Registered: October 2011
Senior Member
> Is there a way I can determine if a specific link is a file that can be downloaded? Perhaps with the response header or the response code when I set the URL_PATH to the file?

I found a Content-Type field in the response header that tells me what the link is.... Oh, and there is a property named CONTENT_TYPE, too. Go figure... Unfortunately, the only way I seem to be able to trigger a response is by using the Get method.

Is there a way to trigger response without downloading the contents of a page first? I am currently using something like

!Null = Get(/String_Array)
self -> GetProperty, CONTENT_TYPE=ct
IF ct NE 'html' THEN !Null = Get(FILENAME=filename)

But this requires two calls to Get.
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: IDL's BESELJ returns NAN for small argument and large order
Next Topic: CV_Coord function

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

Current Time: Fri Oct 10 23:46:11 PDT 2025

Total time taken to generate the page: 1.11910 seconds