On Tue, Apr 29, 2008 at 2:28 PM, Thomas Laurids Pedersen <<a href="mailto:tlp@mach.com">tlp@mach.com</a>> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>
<p>Can this new extension do the post like the builtin http test can do ?<br>
<br>
Regards, Thomas</p></div></blockquote><div> </div></div>I don't think so, as it currently stands.  This line:<br>
<br>
   <span class="st0">$ret=qx(curl -m $tout -s -k -S $pstr "</span><span class="re0">$url</span><span class="st0">" 2>&1);</span><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>
   <span class="st0">$ret=qx(curl -m $tout -s -k -S -d $postArgs $pstr "</span><span class="re0">$url</span><span class="st0">" 2>&1);</span><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<br>