cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
757
Views
0
Helpful
4
Replies

REM-ios SDK usecookie-how to fetch it from agent side

wli6
Cisco Employee
Cisco Employee

Hi guys,

According to the REM developer guide--Enabling Web Socket Cookie Support section, i enable the "useCookies” param, and successfully sent the cookie to REAS server.

But we want to know how to use the below cookie info, and how to fetch it from agent side?

below is the ios sdk log info:

2015-10-19 10:31:28.675 RemoteExpertMobile[388:134105] ***WEBSOCKET*** SEND: {"type":"OK","callId":"CL-99ba9b66-1f75-4b8a-aede-0c74b37484e4"}

2015-10-19 10:31:28.683 RemoteExpertMobile[388:134261] [SR] Use Cookies

2015-10-19 10:31:28.684 RemoteExpertMobile[388:134261] [SR] cookiesForUrl(wss://61.155.238.86:8443/assistserver/topic?appkey=assist-r589srisdmb8scdtdqme9f33n&topic=assist-r589srisdmb8scdtdqme9f33n&sessionId=nrr%3A%21%21ej.jff.ihc.ce%3Acggh%21DJqFnJl%21nFIrvHzFqHJyy%3FJuuzFl%3D5N4N-bGeGcHIF-bbcE-gFhj-Ihcc-giHdijgeFGIc&role=consumer): (

)

2015-10-19 10:31:28.685 RemoteExpertMobile[388:134261] [SR] all cookies: (

    "<NSHTTPCookie version:0 name:\"BAIDUID\" value:\"04EFA6F9FD4E267C2899AA2BBB7899E9:FG=1\" expiresDate:2083-11-03 06:17:37 +0000 created:2015-10-16 03:03:30 +0000 sessionOnly:FALSE domain:\".baidu.com\" path:\"/\" isSecure:FALSE>",

    "<NSHTTPCookie version:0 name:\"BIDUPSID\" value:\"04EFA6F9FD4E267C2899AA2BBB7899E9\" expiresDate:2083-11-03 06:17:37 +0000 created:2015-10-16 03:03:30 +0000 sessionOnly:FALSE domain:\".baidu.com\" path:\"/\" isSecure:FALSE>",

    "<NSHTTPCookie version:0 name:\"H_PS_PSSID\" value:\"17112_17522_1456_17514_12824_14430_17179_17001_17470_17073_15293_12407_17050\" expiresDate:(null) created:2015-10-19 02:31:16 +0000 sessionOnly:TRUE domain:\".baidu.com\" path:\"/\" isSecure:FALSE>",

    "<NSHTTPCookie version:0 name:\"PSTM\" value:\"1444964607\" expiresDate:2083-11-03 06:17:37 +0000 created:2015-10-16 03:03:30 +0000 sessionOnly:FALSE domain:\".baidu.com\" path:\"/\" isSecure:FALSE>",

    "<NSHTTPCookie version:0 name:\"HMACCOUNT\" value:\"8FEE03D3ACF57DDF\" expiresDate:2038-01-18 00:00:00 +0000 created:2015-10-19 02:21:36 +0000 sessionOnly:FALSE domain:\".hm.baidu.com\" path:\"/\" isSecure:FALSE>",

    "<NSHTTPCookie version:0 name:\"BD_HOME\" value:\"0\" expiresDate:(null) created:2015-10-19 02:31:16 +0000 sessionOnly:TRUE domain:\"www.baidu.com\" path:\"/\" isSecure:FALSE>",

    "<NSHTTPCookie version:0 name:\"BD_UPN\" value:\"\" expiresDate:2015-10-29 02:31:17 +0000 created:2015-10-19 02:31:17 +0000 sessionOnly:FALSE domain:\"www.baidu.com\" path:\"/\" isSecure:FALSE>",

    "<NSHTTPCookie version:0 name:\"Hm_lvt_e9e114d958ea263de46e080563e254c4\" value:\"1445221298\" expiresDate:2016-10-18 02:21:38 +0000 created:2015-10-19 02:21:38 +0000 sessionOnly:FALSE domain:\".news.baidu.com\" path:\"/\" isSecure:FALSE>",

    "<NSHTTPCookie version:0 name:\"LOCALGX\" value:\"%u5927%u8FDE%7C%31%35%30%31%7C%u5927%u8FDE%7C%31%35%30%31\" expiresDate:2015-10-26 02:21:32 +0000 created:2015-10-19 02:21:35 +0000 sessionOnly:FALSE domain:\".news.baidu.com\" path:\"/\" isSecure:FALSE>"

Thanks a lot.ewindgatcshiyou

1 Accepted Solution

Accepted Solutions

At this time the agent cannot access the cookies.

Could I ask about the parameters? What information are you looking for?

View solution in original post

4 Replies 4

ewindgat
Level 5
Level 5

A consumer application is able to include cookies.

Unfortunately, any cookies added cannot be accessed by the agent.

wli6
Cisco Employee
Cisco Employee

Thanks ewindgat for your reponse.

If agent can't get it, we want to know, how to fetch it and how to use it, and what is the purpose or user case to use this parameters?

Thanks a lot.

At this time the agent cannot access the cookies.

Could I ask about the parameters? What information are you looking for?

wli6
Cisco Employee
Cisco Employee

hi ewindgat,

i mean for this "useCookies” param, when it is enabled, what is the use case for this param, how to utilize it?

Thanks a lot.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: