Getting Data In

Command modular shell script's curl request returning exit code 77 when using https.

bindu321
Engager

Hi,

I have a command modular input, which calls a shell script. There is a curl HTTPS command in the script. I am able to run the curl command as well as the shell script successfully from a command prompt. But when being called through command modular, the curl's exit code is 0 only when I use http. When I change the curl url to https, it starts returning exit code 77. 

 

I am still trying to improve my debugging skills. Any suggestion/guidance would be helpful 

Thanks

0 Karma

andreibanaru
Explorer

My workaround was to use "-k" with the curl command inside the script.

0 Karma
Get Updates on the Splunk Community!

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...

Splunk APM: New Product Features + Community Office Hours Recap!

Howdy Splunk Community! Over the past few months, we’ve had a lot going on in the world of Splunk Application ...

Index This | Forward, I’m heavy; backward, I’m not. What am I?

April 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...