I forgot to mention i have IDL 9.0 and Ubuntu 20.04.6 LTS
And all worked fine with the previous IDL version.
The porblem is the libcurl version 8.4.0-DEV which is somehow provided by IDL and a certificate path which does not fit on my system.
Solutions 1 ;
curl can be forced to ignore certificates with option -k
But of course this is not safe.
Solution 2:
curl can be provided with a path for the certificates with option --capath . You can find the path for the certificates by investigating the verbose output of curl from the shell and insert the path you find there
[CODE] SPAWN, curl --capath /etc/ssl/certs/ ...
It remains the danger that curl and this version of libcurl do not work together.
Solution 3:
As IDL is using libcurl it mus do somthing with it. Searching on the IDL doc pages for curl points me a new class HTTPRequest introduced with IDL version 9.0 - so that is the reason why it stopped working with this IDL version. One can use HTTPRequest to do the call, nevertheless one has to provide the name of the certificate file (IDL developpers preset a MS-Windows system path - although I am working on Linux ...).
URL='...'
options = { USERPWD : '...', CAINFO : '/etc/ssl/certs/ca-certificates.crt' }
params = hash( 'lomin', bbox[0], ... )
data = HTTPREQUEST.GET( URL, param=params, options=options )
print, 'data='
print, data.text
print, data.json()
I used here a structure for the options and a hash for the paramters - but this can be mixed...
For details see https://www.nv5geospatialsoftware.com/docs/HttpRequest.html