Re: quick and dirty Netsaint plugins with Perl question
Subhendu Ghosh <[email protected]>
| Newsgroups | gmane.network.netsaint.user |
|---|---|
| Message-ID | <[email protected]> |
On Mon, 18 Nov 2002, 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
> }
>
>
quick and dirty :)
you want a print statement for the viewable ouput
and you want a return/exit statement with the return code.
currently - you are just showing a print statement.
--
-sg
-------------------------------------------------------
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