mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-03 16:56:54 +00:00
23 lines
363 B
Perl
23 lines
363 B
Perl
##############################################
|
|
package main;
|
|
|
|
# call it whith http://localhost:8083/fhem/privcgi
|
|
|
|
use strict;
|
|
use warnings;
|
|
|
|
sub priv_cgi_Initialize($)
|
|
{
|
|
$data{FWEXT}{"/privcgi"} = "priv_cgi_callback";
|
|
}
|
|
|
|
sub
|
|
priv_cgi_callback($$)
|
|
{
|
|
my ($htmlarg) = @_;
|
|
Log 1, "Got $htmlarg";
|
|
return ("text/html; charset=ISO-8859-1", "Hello World");
|
|
}
|
|
|
|
1;
|