Hello,
is it possible to turn off the verification of the certificate like the option -k via curl at netGet?
curl example:
curl -X GET -H "Content-Type: application/json" -H "Authorization: Basic xxxxxxxxxxxxxxxxxxx" -k https://10.237.126.21/opspace/api/v1/sources/
netGet turn off verification of the certificate
Search
Re: netGet turn off verification of the certificate
yes options["ignoreSslErrors"] = "";
Code: Select all
mapping m;
netGet("https://192.168.10.252/ui/#/login", m, makeMapping("ignoreSslErrors",""));
Re: netGet turn off verification of the certificate
I tried this, but it doesnt work 

Re: netGet turn off verification of the certificate
Code: Select all
mapping m;
mapping headers = makeMapping("Content-Type", "application/json", "Authorization", "Basic xxxxxxxxxxxxxxxxxxx");
netGet("https://10.237.126.21/opspace/api/v1/sources", m, makeMapping("ignoreSslErrors","", "headers", headers));