"What Does -k Do in the Curl Command in Linux? Can Someone Explain?"

10 Replies, 1710 Views

Yo, the `-k` flag in curl is like saying "I don’t care about SSL certs, just let me in!" It skips the whole certificate verification process, which can be useful if you’re testing stuff locally or dealing with a server that has a self-signed cert.

But yeah, it’s not super safe for regular use. If you’re hitting a public site, better to fix the cert issue instead of using `-k`. For debugging, though, it’s a lifesaver.

Messages In This Thread



Users browsing this thread: 1 Guest(s)