Skip to content

Send images through HTTP #618

Closed Answered by vivekatoffice
syariffortask asked this question in General
Discussion options

You must be logged in to vote

Hi @syariffortask ,
For your reference, I am adding my test setup snapshots here:

Start Webserver using PHP

php -S 10.176.12.32:8090 index.php

Add Recipients:

Rule and Action:

Manual Trigger control in camera webpage:

Output

PHP code (index.php)

<?php 

echo '<p>Hello World!</p>';

// Echo the request method (e.g., GET, POST)
error_log("Request Method: ". $_SERVER['REQUEST_METHOD'] . PHP_EOL);

// Echo the requested URI
error_log("Request URI: ". $_SERVER['REQUEST_URI']. PHP_EOL);

// Echo the user agent of the client
error_log("User Agent: ". $_SERVER['HTTP_USER_AGENT']. PHP_EOL);

// Echo the client's IP address
error_log("Client IP Address:". $_SERVER['REMOTE_ADDR']. PHP_EOL);

// …

Replies: 5 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@syariffortask
Comment options

@vivekatoffice
Comment options

@syariffortask
Comment options

Comment options

You must be logged in to vote
1 reply
@syariffortask
Comment options

Answer selected by vivekatoffice
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants