[hobbit] URLplus
Thomas Laurids Pedersen
tlp at mach.com
Wed Apr 30 10:16:59 CEST 2008
Would you share the bourne script. I need something quickly for only 1 site
at the moment, so anything will do.
Regards, Thomas
"Ralph Mitchell"
<ralphmitchell at gm
ail.com> To
hobbit at hswn.dk
29-04-2008 22:04 cc
Subject
Please respond to Re: [hobbit] URLplus
hobbit at hswn.dk
On Tue, Apr 29, 2008 at 2:28 PM, Thomas Laurids Pedersen <tlp at mach.com>
wrote:
Can this new extension do the post like the builtin http test can do
?
Regards, Thomas
I don't think so, as it currently stands. This line:
$ret=qx(curl -m $tout -s -k -S $pstr "$url" 2>&1);
in showUrl is the bit that actually fetches the web page. To do a POST
using curl, you would need to change that to:
$ret=qx(curl -m $tout -s -k -S -d $postArgs $pstr "$url" 2>&1);
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.
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...
Ralph Mitchell
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20080430/593c8ba4/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: graycol.gif
Type: image/gif
Size: 105 bytes
Desc: not available
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20080430/593c8ba4/attachment.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pic08184.gif
Type: image/gif
Size: 1255 bytes
Desc: not available
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20080430/593c8ba4/attachment-0001.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ecblank.gif
Type: image/gif
Size: 45 bytes
Desc: not available
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20080430/593c8ba4/attachment-0002.gif>
More information about the Xymon
mailing list