Http binding and cron


Is it possible to use the http binding with cron instead of using the refresh rate?


There is an open issue to implement this, but it’s not done yet. There are many use cases where this would be helpful.

Thanks for the quick reply. Do you know if using curl I can decode a gzipped response?

I don’t see why not! curl is very flexible. If you mean that the content returned is itself a gzip’d file, you can pipe curl to gunzip like curl URL | gunzip > myfile.dat.

Thanks @watou, for some reason piping the curl command to gunzip and sending it to a file was not working, I finally did it like this:

cmd = curl@@--compressed@@-m@@10@@" + "-o@@" + file  + "@@-X@@GET@@"  + url
1 Like