Thank you for your feedback.
Form temporarily unavailable. Please try again or contact docfeedback@servicenow.com to submit your comments.
Versions
  • London
  • Kingston
  • Jakarta
  • Istanbul
  • Helsinki
  • Geneva
  • Store
Close

SOAPResponseV2 - getCookies()

SOAPResponseV2 - getCookies()

Get all cookies included in the response.

Table 1. Parameters
Name Type Description
None
Table 2. Returns
Type Description
Object The list of cookies. Iterate through the list to perform operations on each cookie.

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=/