HTTP Request

89 views
Skip to first unread message

Le- Ze

unread,
Apr 30, 2025, 3:47:55 AM4/30/25
to Tasker
Hi.
I have tasker 6.4.15
Profiles - + - Event - Net - HTTP Request
port 1821
path /zprava

TASK → Flash → text → accepted: %http_data

curl -X POST http://192.168.1.240:1821/zprava -H "Content-Type: text/plain" -d "hello world"

Flas won't show me accepted: hello world
Flas will show me accepted: %http_data
Why?

João Dias

unread,
Apr 30, 2025, 4:45:16 AM4/30/25
to tas...@googlegroups.com
Here, try this:

    Profile: Test Http Event
    Event: HTTP Request [ Output Variables:* Port:1821 Method:* Path:/test Quick Response:* Timeout (Seconds):10 Only On Wifi:Off Network Name/MAC Address:* ]
   
   
   
    Enter Task: Anon
   
    A1: Flash [
         Text: %http_request_body
         Continue Task Immediately: On
         Dismiss On Click: On ]
   
    A2: HTTP Response [
         Request ID: %http_request_id
         Status Code: 200
         Type: Text
         Body: Ok
         Mime Type: text/plain; charset=UTF-8 ]
   
    
Then call http://192.168.1.240:1821/test to test it

Thank you for your contact.

   Join: connect multiple devices (send pushes, remote SMS, notifications) on Android, Windows, Mac, Linux
   Tasker: customize/automate anything on your phone!
   AutoApps: add advanced functionality to Tasker via plugins

     

João Dias

Le- Ze

unread,
May 1, 2025, 1:39:14 AM5/1/25
to Tasker

Thank you.
Works.

Dne středa 30. dubna 2025 v 10:45:16 UTC+2 uživatel João Dias napsal:
Reply all
Reply to author
Forward
0 new messages