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 #88113 is a reply to message #88107] Thu, 20 March 2014 19:27 Go to previous message
Matthew Argall is currently offline  Matthew Argall
Messages: 286
Registered: October 2011
Senior Member
> Is there a way to trigger response without downloading the contents of a page first?

I decided to spawn curl and scan use its response for the content type. It is much faster when searching for data files.

spawn, 'curl -I -s' + url, response

To check for curl, I try

spawn, 'which curl', response
if response ne '' then hasCurl = 1 else hasCurl = 0
[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: Wed Oct 08 17:29:03 PDT 2025

Total time taken to generate the page: 0.00378 seconds