Xymon Mailing List Archive search

Possible to have Hobbit retain and use cookies?

list Martin Rogers
Wed, 12 Mar 2008 11:48:20 +0100
Message-Id: <user-286659abacef@xymon.invalid>

Thanks for that rapid reply!

However we've looked at that option and if I understand it correctly that
would allow us to create a cookie in advance and read it from the file.  The
problem we have is that we have 4 weblogic servers, each of which will
generate a cookie automatically on the first request from Hobbit and return
it with the http response.  Writing the cookie in advance is not an option
as it would not be recognised as a valid session cookie by any of the
weblogic instances.

What we need Hobbit to do is to read the cookie on the first response and
use it on subsequent calls to that domain.. i.e. to emulate a browser.

Is it possible to do that without a code change? (our last resort!)

Regards,
Martin

On Wed, Mar 12, 2008 at 11:33 AM, Charles Goyard <
user-a6cdca7046e2@xymon.invalid> wrote:
Hi,

Martin Rogers wrote :
It is possible to have Hobbit retain these cookies and send with
subsequent
requests to the same URL?
I had the exact same problem, hobbit created lots of sessions. Look at
the cookie feature in bbtest-net manpage. You will have to write the
cookie manually, but then it will be reused for all requests. For some
sites, providing a forged cookie works (so I use
"session=hobbitmonitor" as a cookie).

Regards,


--
Charles Goyard - user-a6cdca7046e2@xymon.invalid - (+33) 1 45 38 01 31
Orange Business Services - online multimedia  // ingénierie