问题描述
我使用cometd.net客户端,服务器端使用cometd java。
握手后,服务器将返回一个json有效载荷,在响应头,有
Set-Cookie:BAYEUX_BROWSER = 533bkb4ydvb9rti9gz9zxs3fgfv,如何从客户端获取这个?
我看到在json有效载荷中有clientid,但是不是bayeux_broswer。感谢
I am using cometd.net client, server side uses cometd java.After handshake, server will return a json payload, in response header, there isSet-Cookie: BAYEUX_BROWSER=533bkb4ydvb9rti9gz9zxs3fgfv, how to get this from client?I saw there is clientid in json payload, but that's not bayeux_broswer. thanks
推荐答案
我得到了。它在LongPollingTransport.GetResponseCallback,
从响应添加cookie到LongPollingTransport.parent
I got it. It is in LongPollingTransport.GetResponseCallback,add cookie from response to LongPollingTransport.parent
这篇关于如何从cometd.NET客户端获取BAYEUX_BROWSER cookie的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!