45212

How to get BAYEUX_BROWSER cookie from cometd.NET client

Question:

I am using cometd.net client, server side uses cometd java. After handshake, server will return a json payload, in response header, there is Set-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

Answer1:

I got it. It is in LongPollingTransport.GetResponseCallback, add cookie from response to LongPollingTransport.parent

Recommend

  • Does Java's TCP Socket class block when sending data
  • PayPal IPN OPENSSL error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure
  • The underlying connection was closed exception while WebClient DownloadString
  • Golang web scraper NTLM authentication
  • Creating a Messenger service
  • Passing Props from State to Child
  • Use allowDiskUse in criteria query with Grails and the MongoDB plugin?
  • Obtain actual browser URL in PHP
  • Cryptic error when trying to run POW
  • How to add the custom button on google's(device) native application in android?
  • Mocha throws unexpected token error for ES6 object spread operator
  • Can long-polling be achieved in Restlet by just making the thread sleep?
  • What is the default HTTP verb in WebApi ? GET or POST?
  • didUpdatePushCredentials not get called
  • Ember.js model to be organised as a tree structure
  • Jackson Parser: ignore deserializing for type mismatch
  • Play WS (2.2.1): post/put large request
  • OpenGL ES texture problem, 4 duplicate columns and horizontal lines (Android)
  • Handling un-mapped Rest path
  • Different response to non-authenticated users and AJAX calls
  • Why ng-show works with ng-repeat but ng-if doesn't? [duplicate]
  • PHP - How to update data to MySQL when click a radio button
  • Get object from AWS S3 as a stream
  • Cross-Platform Protobuf Serialization
  • Validaiting emails with Net.Mail MailAddress
  • Do I've to free mysql result after storing it?
  • How can I estimate amount of memory left with calling System.gc()?
  • Warning: Can't call setState (or forceUpdate) on an unmounted component
  • Is there a mandatory requirement to switch app.yaml?
  • How to format a variable of double type
  • File upload with ng-file-upload throwing error
  • ExecuteAsync RestSharp to allow backgroundWorker CancellationPending c#
  • AngularJs get employee from factory
  • coudnt use logback because of log4j
  • Is it possible to post an object from jquery to bottle.py?
  • JaxB to read class hierarchy
  • Django query for large number of relationships
  • Why is Django giving me: 'first_name' is an invalid keyword argument for this function?
  • How can I use `wmic` in a Windows PE script?
  • How to push additional view controllers onto NavigationController but keep the TabBar?