<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Ton Voon wrote:
<blockquote cite="mid19B5BE1D-E52F-4C47-B22F-56622D1FA0EF@altinity.com"
type="cite">No cookies in check_http, I'm afraid. It would be a
nightmare enhance it to hold sessions.
<div><br class="khtml-block-placeholder">
</div>
<div>If you are good with perl, look at WWW::Mechanize. This allows
you to store cookies and interact with a website as if you were a
browser. We use this to login to monitor a betting site and retrieve
funds information.</div>
<div><br>
<div>
<div>On 17 Aug 2006, at 12:18, Hari Sekhon wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">
<div style="margin: 0px;">Hi,</div>
<div style="margin: 0px;"><span class="Apple-converted-space"> </span>I've
got check_http doing a login which works fine and I'm using the<span
class="Apple-converted-space"> </span></div>
<div style="margin: 0px;">--onredirect=follow to make sure I can
fetch the secured page it's<span class="Apple-converted-space"> </span></div>
<div style="margin: 0px;">redirected to.</div>
<div style="margin: 0px; min-height: 14px;"><br>
</div>
<div style="margin: 0px;">The problem is that when the page is
fetched it is fetched without the<span class="Apple-converted-space"> </span></div>
<div style="margin: 0px;">previously supplied credentials and
therefore I get a login page instead<span class="Apple-converted-space"> </span></div>
<div style="margin: 0px;">of the page within the secure area.</div>
<div style="margin: 0px; min-height: 14px;"><br>
</div>
<div style="margin: 0px;">I really really need to get the page in
the secure area. Does anybody<span class="Apple-converted-space"> </span></div>
<div style="margin: 0px;">know how to make it store and use the
credentials for the redirect. It's<span class="Apple-converted-space"> </span></div>
<div style="margin: 0px;">obviously not using it's cookie and I've
looked through the --help but<span class="Apple-converted-space"> </span></div>
<div style="margin: 0px;">it makes not mention of cookies...</div>
<div style="margin: 0px; min-height: 14px;"><br>
</div>
</blockquote>
</div>
<div><span class="Apple-style-span"
style="border-collapse: separate; border-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px;"><span
class="Apple-style-span"
style="border-collapse: separate; border-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px;"><span
class="Apple-style-span"
style="border-collapse: separate; border-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px;"><span
class="Apple-style-span"
style="border-collapse: separate; border-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px;"><span
class="Apple-style-span"
style="border-collapse: separate; border-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px;"><span
class="Apple-style-span"
style="border-collapse: separate; border-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px;">
<div><br class="khtml-block-placeholder">
</div>
<div><a href="http://www.altinity.com">http://www.altinity.com</a></div>
<div>T: +44 (0)870 787 9243</div>
<div>F: +44 (0)845 280 1725</div>
<div>Skype: tonvoon</div>
</span></span></span></span></span><br
class="Apple-interchange-newline">
</span> </div>
<br>
</div>
</blockquote>
<br>
that's a real pain, but I understand. Curl can actually deal with
cookies so I may end up rustling up a quick script in bash with that,
I've already done some cli tests with it and it works nicely, but
longer term I think I'll have to brush up my perl (I know the very
basics) and do something with Mechanize. I think that this will be a
good opportunity for me to do something useful in Perl. <br>
<br>
Thanks for the pointer.<br>
<br>
Hari<br>
</body>
</html>