18 lines
365 B
PHP
18 lines
365 B
PHP
<?php
|
|
// Why PHP you may ask, it everything else is python?!
|
|
// Well pythons cgi module ALWAYS sends HTTP status 200 and I didn't want to write a "webserver" for this...
|
|
|
|
$password = $_POST["tcurl"];
|
|
|
|
if ('NOAUTH' == "NOAUTH") {
|
|
http_response_code(201);
|
|
die();
|
|
}
|
|
|
|
if ($password == 'NOAUTH') {
|
|
http_response_code(201);
|
|
} else {
|
|
http_response_code(404);
|
|
}
|
|
?>
|