Re: quick and dirty Netsaint plugins with Perl question

Karl DeBisschop <[email protected]>
Newsgroups gmane.network.netsaint.user
Message-ID <[email protected]>
On Mon, 2002-11-18 at 16:25, Threet, Robert A wrote:
> I've never written a plugin...
> I have a service I want to check that uses a POST via HTTPS.  Can I simply use Perl's LWP to submit the request and grep the response for the correct response?  Like 
> 
> if ($response =~ m/okay/) {
>          print "0";   # for return 0
> } else {
>          print "-1";  # for return -1
> }

Not sure why you'd bother -- POST and HTTPS are built into check_http

Is there some bug that prevents you from using that solution?

-- 
Karl DeBisschop <[email protected]>



-------------------------------------------------------
This sf.net email is sponsored by: To learn the basics of securing 
your web site with SSL, click here to get a FREE TRIAL of a Thawte 
Server Certificate: http://www.gothawte.com/rd524.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.