mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-13 09:36:46 +00:00
perl update
This commit is contained in:
19
libs/libscgi/perl/testclient.pl
Normal file
19
libs/libscgi/perl/testclient.pl
Normal file
@@ -0,0 +1,19 @@
|
||||
use FSSCGI;
|
||||
|
||||
|
||||
my $handle = new FSSCGI::SCGIhandle();
|
||||
|
||||
$handle->addParam( "REQUEST_METHOD", "POST");
|
||||
$handle->addParam( "REQUEST_URI", "/deepthought");
|
||||
$handle->addParam( "TESTING", "TRUE");
|
||||
$handle->addParam( "TESTING", "TRUE");
|
||||
$handle->addBody("What is the answer to life?");
|
||||
|
||||
|
||||
|
||||
if ((my $response = $handle->sendRequest("127.0.0.1", 7777, 10000))) {
|
||||
print "RESP[$response]\n";
|
||||
} else {
|
||||
print "ERROR!\n";
|
||||
}
|
||||
|
Reference in New Issue
Block a user