Changes

no edit summary
Line 1: Line 1: −
Coming soon
+
<span style="color: #B22A2A; font-size: 24px; display: inline-block; margin-top: 15px; margin-bottom: 0px;"><strong>About this trigger</strong></span>
 +
 
 +
<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px; margin-top: 5px; margin-bottom: 5px;">
 +
This trigger will create a local HTTP Server and can trigger based on specific HTTP requests.
 +
 
 +
A local HTTP server, or localhost, is a personal web server URL that can be configured to serve content over HTTP and be accessible from a device on the same local network.
 +
</pre>
 +
 
 +
<pre style="background-color: #FFFF99; color: #112A46; border-radius: 10px; padding: 10px; margin-top: 5px; margin-bottom: 5px;">
 +
Please note the following:
 +
 
 +
* You cannot access from anywhere other than the local network.
 +
 
 +
* Anyone who knows this url will be able to access (local network only) to prevent this from happening define an IP whitelist.
 +
 
 +
* That your device's IP address can change. Consider assigning a static IP address to prevent this happening.
 +
</pre>
 +
 
 +
<span style="color: #B22A2A; font-size: 18px; display: inline-block; margin-top: 15px; margin-bottom: 15px;"><strong>Send Response </strong></span>
 +
 
 +
<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px; margin-top: 5px; margin-bottom: 5px;">
 +
When you access the url, the trigger will automatically respond with a personalised text response.
 +
</pre>
 +
 
 +
''See also: [https://macrodroidforum.com/wiki/index.php/Action:_HTTP_Server HTTP Server Action].''
 +
 
 +
<span style="color: #B22A2A; font-size: 18px; display: inline-block; margin-top: 15px; margin-bottom: 15px;"><strong>Response Code</strong></span>
 +
 
 +
<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px; margin-top: 5px; margin-bottom: 5px;">
 +
Supports response code
 +
and only responds to a simple custom text or magic text.
 +
</pre>
 +
 
 +
''See also: [https://en.wikipedia.org/wiki/List_of_HTTP_status_codes HTTP Status Code (Wikipedia)].''<br/>
 +
 
 +
 
 +
<span style="color: #B22A2A; font-size: 18px; display: inline-block; margin-top: 15px; margin-bottom: 15px;"><strong>IP address whitelist </strong></span>
 +
 
 +
<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
 +
It can support one or more IP addresses so that the HTTP Server is only accessible from specific IP addresses.
 +
Also supports magic text '...'.
 +
</pre>
 +
''See also: [[magic text|Magic text list]] ''
 +
</pre>
 +
 
 +
<span style="color: #B22A2A; font-size: 18px; display: inline-block; margin-top: 15px; margin-bottom: 15px;"><strong>Save body to string variable </strong></span>
 +
 
 +
<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
 +
If your HTTP POST request contains any text format, you can save it in any string variable.
editors
1,590

edits