It was titled "Hobbit content check script".  Here's the body of the message, and the attachments:<div><br></div><div><br></div><div><span class="Apple-style-span" style="border-collapse: collapse; font-size: 16px; "><div id=":36b" class="ii gt" style="font-size: 80%; margin-top: 5px; margin-right: 15px; margin-bottom: 5px; margin-left: 15px; padding-bottom: 20px; ">
Sorry I didn't get back to you earlier - I've been fighting with perl<br>& SOAP, trying to get some status messages out of a bunch of load<br>balancers.  I think I finally got it now....<br><br>Attached (hopefully :) are a couple of files I tried to post to the<br>
list some time last year.  There's a shell script that does a login to<br>a <span class="il" style="background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: rgb(255, 255, 136); background-position: initial initial; ">Siteminder</span> site, and a perl script evolved from something Daniel<br>
Stenberg wrote - he's the original author of curl.  Daniel's very<br>active on the curl mailing list, by the way, along with a bunch of<br>other helpful folks, if it starts going weird on you.<br><br>The <span class="il" style="background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: rgb(255, 255, 136); background-position: initial initial; ">Siteminder</span> login probably won't be much use to you as is, but it<br>
demonstrates a few things I've worked out over the years.  Like, the<br>standard options string to pass to curl, collecting messages along the<br>way, and loading up the message string with a Manual Check url at the<br>
end for ops to try the check for themselves before waking people up...<br><br>You can put almost *anything* into the message string that gets sent<br>to Hobbit.  Right now I have scripts that check car rentals at travel<br>
sites for a particular company and emit a table of the current prices.<br>Another script hits a cruise monitor and puts out a list using the<br>&red and &green dots to mark cruise lines as reachable or not.  You<br>
can push out font color and size changes, urls to saved pages, etc.<br><br>As far as cookies go, I generally just have curl save them whenever it finishes:<br><br> curl -b cookies -c cookies .....<br><br>If you do that you can go look at the cookies and see what came in.<br>
Other things become possible too, such as editing cookies in between<br>curl calls.  If you do keep cookies, though, the *first* thing you<br>should do in the script is delete the cookie file.  That's like<br>clearing the browser cookie cache, and can avoid a lot of mysterious<br>
errors.<br><br>Finally, if you think you might spend some time on web site scripts,<br>there's a Firefox extension that is absolutely invaluable -<br>LiveHTTPheaders.  It shows you *exactly* what the browser sends to the<br>
server, as well as what it gets back - not the page content, just the<br>headers, but that's all you need to recreate the sequence.  It even<br>works twith secure sites.  If you see something going out that you<br>can't account for, the usual suspect is javascript.  I've seen<br>
javascript that assembles a url on the fly from form elements, fiddles<br>with some of the form elements, then posts the form.  That kind of<br>thing can be difficult to nail down, and almost impossible to<br>replicate...<br>
<font color="#888888"><br>Ralph Mitchell<br></font></div><div class="hq gt" style="font-size: 80%; margin-top: 5px; margin-right: 15px; margin-bottom: 15px; margin-left: 15px; clear: both; "></div></span><div class="gmail_quote">
2009/5/25 Ricardas Vaitkus <span dir="ltr"><<a href="mailto:Ricardas.Vaitkus@seb.lt">Ricardas.Vaitkus@seb.lt</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi Ralph<br>
<br>
I tried to find your message in mail archive, but I couldn't. Can you tell<br>
me the title of your message, because by date I was not able to find it.<br>
<br>
Thanks<br>
Ricardas<br>
<br>
Ralph Mitchell <<a href="mailto:ralphmitchell@gmail.com">ralphmitchell@gmail.com</a>> wrote on 22/05/2009 19:48:51:<br>
<div class="im"><br>
> I did a whole lot of that for my last employer.  As far as I know<br>
> they still use my scripts to run about 2500 checks on roughly 300<br>
servers.<br>
><br>
> See my message on Jun 7, 2007 at 12:08 AM in the mail archive for<br>
> details and a sample script.<br>
><br>
> Ralph Mitchell<br>
<br>
<br>
</div><div><div></div><div class="h5">To unsubscribe from the hobbit list, send an e-mail to<br>
<a href="mailto:hobbit-unsubscribe@hswn.dk">hobbit-unsubscribe@hswn.dk</a><br>
<br>
<br>
</div></div></blockquote></div><br></div>