I am trying to send a post request with groovy using cookie based auth and it works no problem in post man but when executing the script I keep getting 401 unauthorized and an invalid cookie was sent.