Attached are two files:<br><br>bb-siteminder.sh is an example script to demonstrate how to login<br><br>formextract.pl is a slightly modified copy of Daniel Stenberg's formfind.pl, which can be found here:<br><br>   <a href="http://curl.haxx.se/docs/programs.html" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">

http://curl.haxx.se/docs/programs.html</a><br><br>I'm not a perl programmer, so any screwups in formextract are mine, not Daniel's... :)<br><br>It's doubtful that the example script will work out of the box.  I've found that I generally have to take it in easy stages - fetch the first page, eyeball it, adjust the script, lather, rinse, repeat.
<br><br>Ralph Mitchell<br><br><br><div><span class="gmail_quote">On 6/22/06, <b class="gmail_sendername">Ralph Mitchell</b> <<a href="mailto:ralphmitchell@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
ralphmitchell@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>OK, I'll see about working up a relatively generic script tonight.  As I recall it works something like:<br>
<br>
   curl -s -S -L -o home.html <a href="http://somesite.domain.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://somesite.domain.com</a><br>   FORM=`cat home.html | formextract.pl | sed -e 'some stuff'`
<br>
   curl -s -S -L -o page.html $FORM<br>
<br>
That's *very* simplistic, though.  'formextract.pl' is a hack on
'formfind.pl' which comes with curl.  It extracts form variables
from a page and returns a string suitable for passing back to
curl.  The 'sed' part is usually a bunch of substitutions to
insert the userid and password.<br></div><div><span>
<br>
Ralph Mitchell</span></div><div><span><br>
<br><div><span class="gmail_quote"><br>
On 6/22/06, <b class="gmail_sendername">PAUL WILLIAMSON</b> <<a href="mailto:pwilliamson@mandtbank.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">pwilliamson@mandtbank.com</a>> wrote:</span>

<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I'm interested in this as well, as we use siteminder too!<br><br>Paul<br><br>>>> <a href="mailto:Shawn.Maschino@ge.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Shawn.Maschino@ge.com
</a> 06/22/06 9:41 AM >>><br>            Thanks Ralph and Larry - if either of you can share an
<br>example script that would be great.  We are using Siteminder for our<br>SSO<br>here so it sounds like it may be easy to steal, er, borrow, what you<br>have to get it working.<br><br><br><br>To unsubscribe from the hobbit list, send an e-mail to
<br><a href="mailto:hobbit-unsubscribe@hswn.dk" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">hobbit-unsubscribe@hswn.dk</a><br><br><br></blockquote></div><br>

</span></div></blockquote></div><br>