02-20-2007 06:48 AM - edited 03-10-2019 03:28 AM
Here's a perl script that connects to an IPS device and then (when passed -l) logs to a file, somewhat simulating syslog. Without -l it will just log to screen, giving a nice pretty colour-coded output. It uses xsltproc and a stylesheet to translate the xml to something readable. (At first I tried SOAP::Lite, but that doesn't implement true xpath so I went with a stylesheet and xsltproc instead) Any feedback appreciated.
02-20-2007 08:36 AM
good stuff. thanks.
11-10-2015 03:38 AM
Inside getSomeEvents
getting...
$VAR1 = 'HTTP/1.1 400 Bad Request
Connection: Close
Date: Tue, 10 Nov 2015 10:55:49 UTC
Server: HTTP/1.1 compliant
Content-Length: 122
Content-Type: text/html
';
body:
<html><head><title>Bad Request</title></head><body><h2>Bad Request</h2><p>Parser got an invalid version.</p></body></html>
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide