Unfortunately it's not just one script.  I've found many variations in login pages, so I've had to customize the scripts for each different target.  Some logins require a form to be posted back, others are handled via WWW-Authenticate pop-up boxes and sometimes redirects have to be followed.  That's not hard if the site uses Location headers, because curl can handle those, but I've also found meta-refresh tags and several types of javascript "go-elsewhere" redirects that have to be individually scripted.  <br>
<br>I posted something a year or so ago that might get you started.  If I can find it, I'll post it again.<br><br>Ralph Mitchell<br><br>
<br><div class="gmail_quote">On Wed, Apr 30, 2008 at 3:16 AM, Thomas Laurids Pedersen <<a href="mailto:tlp@mach.com" target="_blank">tlp@mach.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<div>
<p>Would you share the bourne script. I need something quickly for only 1 site at the moment, so anything will do.<br>
<br>
Regards, Thomas<br>
<br>
<img src="?ui=2&ik=811b66aca6&realattid=0.1&attid=0.1&disp=emb&view=att&th=119a0381280f612b" alt="Inactive hide details for "Ralph Mitchell" <ralphmitchell@gmail.com>" border="0" height="16" width="16">"Ralph Mitchell" <<a href="mailto:ralphmitchell@gmail.com" target="_blank">ralphmitchell@gmail.com</a>><br>


<br>
<br>

</p><table border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody><tr valign="top"><td width="40%">
<ul>
<ul>
<ul>
<ul><b><font size="2">"Ralph Mitchell" <<a href="mailto:ralphmitchell@gmail.com" target="_blank">ralphmitchell@gmail.com</a>></font></b><font size="2"> </font>
<p><font size="2">29-04-2008 22:04</font>
</p><table border="1">
<tbody><tr valign="top"><td bgcolor="#ffffff" width="168"><div align="center"><font size="2">Please respond to<br>
<a href="mailto:hobbit@hswn.dk" target="_blank">hobbit@hswn.dk</a></font></div></td></tr>
</tbody></table>
</ul>
</ul>
</ul>
</ul>
</td><td width="60%">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody><tr valign="top"><td width="1%"><img src="?ui=2&ik=811b66aca6&realattid=0.3&attid=0.2&disp=emb&view=att&th=119a0381280f612b" alt="" border="0" height="1" width="58"><br>
<div align="right"><font size="2">To</font></div></td><td width="100%"><img src="?ui=2&ik=811b66aca6&realattid=0.3&attid=0.2&disp=emb&view=att&th=119a0381280f612b" alt="" border="0" height="1" width="1"><br>

<font size="2"><a href="mailto:hobbit@hswn.dk" target="_blank">hobbit@hswn.dk</a></font></td></tr>

<tr valign="top"><td width="1%"><img src="?ui=2&ik=811b66aca6&realattid=0.3&attid=0.2&disp=emb&view=att&th=119a0381280f612b" alt="" border="0" height="1" width="58"><br>
<div align="right"><font size="2">cc</font></div></td><td width="100%"><img src="?ui=2&ik=811b66aca6&realattid=0.3&attid=0.2&disp=emb&view=att&th=119a0381280f612b" alt="" border="0" height="1" width="1"><br>

</td></tr>

<tr valign="top"><td width="1%"><img src="?ui=2&ik=811b66aca6&realattid=0.3&attid=0.2&disp=emb&view=att&th=119a0381280f612b" alt="" border="0" height="1" width="58"><br>
<div align="right"><font size="2">Subject</font></div></td><td width="100%"><img src="?ui=2&ik=811b66aca6&realattid=0.3&attid=0.2&disp=emb&view=att&th=119a0381280f612b" alt="" border="0" height="1" width="1"><br>

<font size="2">Re: [hobbit] URLplus</font></td></tr>
</tbody></table>

<table border="0" cellpadding="0" cellspacing="0">
<tbody><tr valign="top"><td width="58"><img src="?ui=2&ik=811b66aca6&realattid=0.3&attid=0.2&disp=emb&view=att&th=119a0381280f612b" alt="" border="0" height="1" width="1"></td><td width="336"><img src="?ui=2&ik=811b66aca6&realattid=0.3&attid=0.2&disp=emb&view=att&th=119a0381280f612b" alt="" border="0" height="1" width="1"></td>

</tr>
</tbody></table>
</td></tr>
</tbody></table><div><div></div><div>
<br>
<font size="4">On Tue, Apr 29, 2008 at 2:28 PM, Thomas Laurids Pedersen <</font><a href="mailto:tlp@mach.com" target="_blank"><u><font color="#0000ff" size="4">tlp@mach.com</font></u></a><font size="4">> wrote:</font>
<ul>
<ul><font size="4">Can this new extension do the post like the builtin http test can do ?<br>
<br>
Regards, Thomas</font></ul>
</ul>
<font size="4"> </font><br>
<font size="4">I don't think so, as it currently stands.  This line:<br>
<br>
   $ret=qx(curl -m $tout -s -k -S $pstr "$url" 2>&1);<br>
<br>
in showUrl is the bit that actually fetches the web page.  To do a POST using curl, you would need to change that to:<br>
<br>
   $ret=qx(curl -m $tout -s -k -S -d $postArgs $pstr "$url" 2>&1);<br>
<br>
with matching additions elsewhere to fill the $postArgs variable with whatever you want to post.  If you're wanting to implement something that performs a login, you'd probably want to track cookies as well.<br>
<br>
I'm not much of a perl programmer, so I'm not confident about making such changes.  On the other hand, I've done quite a lot of this in Bourne shell...<br>
<br>
Ralph Mitchell</font><br>
</div></div></div>
</blockquote></div><br>