I have recorded a HTML/HTTP script - i debuged the script by adding correlation,headers and cookie.
The Error says -
Action.c(189): <?xml version="1.0" encoding="UTF-8"?><xml error="invalid token"/>
Action.c(189): Error -26630: HTTP Status-Code=401 (Unauthorized) for "https://vmntest.service-now.com/xmlhttp.do" [MsgId: MERR-26630
i compare the Request & Response header there is header for X-RequestToken , how do i handled this ?
Is there anyother possible approach i should look for ?
Action.c(189): Host: vmntest.service-now.com\r\n
Action.c(189): Authorization: Basic dmlhY29tX2NvcnBcZGFsdmlzOk5vdmVtYmVyXzIwMTU=\r\n
Action.c(189): Cookie: JSESSIONID={jsession1}; glide_user_route=glide.7c8b032f420006eb2fcec3ce0c2e6352; B
Action.c(189): IGipServerpool_vmntest=2441101322.40254.0000\r\n
Action.c(189): Content-Length: 110\r\n
Action.c(189): \r\n
Action.c(189): t=34894ms: 110-byte request body for "https://vmntest.service-now.com/xmlhttp.do" (RelFrameId=1, Internal ID=29)
Action.c(189): sysparm_processor=GetUserInfo&sysparm_name=getUserInfo&ni.nolog.x_referer=ignore&x_referer
Action.c(189): =content_redirect.do
Action.c(189): t=35022ms: 821-byte response headers for "https://vmntest.service-now.com/xmlhttp.do" (RelFrameId=1, Internal ID=29)
Action.c(189): HTTP/1.1 401 Unauthorized\r\n
Action.c(189): Set-Cookie: JSESSIONID=DB98C7533BF7B35BCFFF1365A11EA169;Secure; Path=/; HttpOnly\r\n
Action.c(189): Set-Cookie: glide_user_route=glide.7c8b032f420006eb2fcec3ce0c2e6352;secure; Expires=Sat, 0
Action.c(189): 4-Mar-2084 13:28:02 GMT; Path=/; HttpOnly\r\n
Action.c(189): X-UserToken-Response: df1325da13a91a401a5276022244b00aea7f58534b14af2a7a4bb70e3485ccf62da6
Action.c(189): d994\r\n
Action.c(189): X-SessionLoggedIn: false\r\n
Action.c(189): X-HandleTimeOut: true\r\n
Action.c(189): X-AutoResubmit: true\r\n
Action.c(189): X-UserToken-AllowResubmit: false\r\n
Action.c(189): Pragma: no-store,no-cache\r\n
Action.c(189): Cache-control: no-cache,no-store,must-revalidate,max-age=-1\r\n
Action.c(189): Expires: 0\r\n
Action.c(189): Content-Encoding: gzip\r\n
Action.c(189): X-TRANSACTION-TIME-MS: 7\r\n
Action.c(189): X-TRANSACTION-TIME: 0:00:00.007\r\n
Action.c(189): Content-Type: text/xml\r\n
Action.c(189): Transfer-Encoding: chunked\r\n
Action.c(189): Date: Mon, 15 Feb 2016 10:13:55 GMT\r\n
Action.c(189): Server: ServiceNow\r\n
Action.c(189): Strict-Transport-Security: max-age=15768000; includeSubDomains;\r\n
Action.c(189): Connection: close\r\n
===========================================================