Xymon Mailing List Archive search

Possible to have Hobbit retain and use cookies?

list Martin Rogers
Wed, 12 Mar 2008 15:28:45 +0100
Message-Id: <user-78a80285e518@xymon.invalid>

Thanks for all the many responses and suggestions, I am impressed by the
community around this product!  I will probably have an opportunity to test
this out over the next couple of days; we do not have direct control over
the 'real' hobbit servers, so will have to duplicate in our test setup.

Martin

On Wed, Mar 12, 2008 at 3:13 PM, Ralph Mitchell <user-00a5e44c48c0@xymon.invalid>
wrote:
On Wed, Mar 12, 2008 at 8:14 AM, Buchan Milne <user-9b139aff4dec@xymon.invalid>
wrote:
On Wednesday 12 March 2008 12:48:20 Martin Rogers wrote:
Is it possible to do that without a code change? (our last resort!)
It is not possible with Hobbit only at present, but it is quite trivial
to
write a script that uses curl, that would work.

We test our webmail systems, which require a login (returning a cookie),
and
an inbox view (which requires the cookie) this way.
I'd second that - I'm doing about 1500 tests spread over about 600 hosts,
all using curl with cookies, though I generally delete the cookie file at
the top of the script to avoid "open session" confusion.  There's no reason
not to keep on using the same cookie file, though.  Something like:

   curl -s -S -L -b cookiejar -c cookiejar -o file.html
http://server.domain.com

may be all you need.

Ralph Mitchell