How to use cURL from command line with cookies?

The key thing is to log the cookie in a file, this can be done with parameter cookie-jar, below is an example, curl -d “user=test&pass=111111&ip=192.168.1.1&type=2&type=1&action=%C1%AC%BD%D3%CD%F8%C2%E7” –cookie-jar fee.cookie example.com/login.jsp In order to use the cookie, we can command below to read and use this cookie. curl –cookie fee.cookie –referer -d “http://example.com/user.jsp?ip=192.168.1.1& amp;type=2” You can find more details […]
Continue reading…

 

Sendmail: RunAsUser for MSP ignored, can not chdir Permission denied

WARNING: RunAsUser for MSP ignored, check group ids (egid=0, want=51) can not chdir(/var/spool/clientmqueue/): Permission denied Program mode requires special privileges, e.g., root or TrustedUser. I’m running Redhat Enterprise Linux, and this warning appears when I tried to send out emails from command-line with sendmail.  This error message doesn’t appears in maillog, since the mail hasn’t […]
Continue reading…