mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-13 01:26:58 +00:00
perl update
This commit is contained in:
17
libs/libscgi/perl/testserver.pl
Normal file
17
libs/libscgi/perl/testserver.pl
Normal file
@@ -0,0 +1,17 @@
|
||||
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";
|
||||
}
|
Reference in New Issue
Block a user