Authentication Headers(Set-Cookie/X_AUTH_TOKEN) in Rest API response POSTMAN vs Soap UI
Hi,
ON Postman i try hitting a rest service and I get back in the response header a SET_COOKIE to pass to the next requests and I am able to do all the consecutive steps.
When i try to access the same Rest API method on SOAP UI i do not see these headers in the resposne.
I tried adding the domain to the keyStore and all those steps. but may be failing some where.
I tried this in a groovy script:
import com.eviware.soapui.impl.wsdl.support.http.HttpClientSupport
def myCookieStore = HttpClientSupport.getHttpClient().getCookieStore()
import org.apache.http.impl.cookie.BasicClientCookie
def myNewCookie = new BasicClientCookie("xxxx", "xxxx")
myNewCookie.version = 1
myNewCookie.domain = "absd.com"
//myNewCookie.path = "/"
myCookieStore.addCookie(myNewCookie)
The only thing i can think of is how the cookie management in Postman is different from Soap ui.?
The only additional thing i did in Postman was the above I added a cookie with the domain information above.
please help,