freeswitch/libs/libscgi/perl/testserver.pl

18 lines
263 B
Perl
Raw Normal View History

2012-05-23 12:31:17 -04:00
use FSSCGI;
my $handle = new FSSCGI::SCGIhandle();
if ($handle->bind("127.0.0.1", 7777)) {
while($handle->accept()) {
print "REQ: " . $handle->getBody(). "\n\n";
$handle->respond("W00t!!!!!!\n");
}
print "DONE\n";
} else {
print "FAIL\n";
}