AnsweredAssumed Answered

Logout using cookie jar

Question asked by Steve Singh on Nov 7, 2018
Latest reply on Nov 9, 2018 by Damian OHara

Hi,

Have a bash script where I can successfully authenticate and use the cookie-jar  using :

 

curl -H "X-Requested-With: Curl Sample" -D headers -d "action=login&username=SOMENAME3&password=SOMEPWD" -c cookie-jar.txt "https://qualysapi.isops.bmogc.net/api/2.0/fo/session/"

 


I am trying to find a method to use the cookie-jar to log off :
I tried a few things such as this:

 

curl -H "X-Requested-With: Curl Sample" -L -b cookie-jar.txt "https://qualysapi.qualys.com/api/2.0/fo/session/?action=logout

 

but I get this error:

Failed to connect to qualysapi.qualys.com port 443: Timed out

 

Any guidance would be appreciated... 

Outcomes