Close
Thank you for your feedback.

SOAPResponseV2 - getCookies()

SOAPResponseV2 - getCookies()

Get all cookies included in the response.

Table 1. Parameters
NameTypeDescription
None
Table 2. Returns
TypeDescription
ObjectThe list of cookies. Iterate through the list to perform operations on each cookie.

Example

var cookies = response.getCookies();
var i;
for(i=0;i<cookies.size();i++) {
   gs.print(‘cookie: ‘ + cookies.get(i));
}

Output:

  • JSESSIONID=4135AA97A5D12DA22EF614AA2B0CAFD8.node20; Path=/; Secure; HttpOnly
  • SABASESSIONID=370152970.36895.0000; path=/

Products > ServiceNow Platform > Outbound SOAP web service; Versions > Helsinki