how to htttp server

154 views
Skip to first unread message

phonetus tus

unread,
Oct 19, 2025, 6:29:47 PMOct 19
to Automate for Android
I tried this app SIMPLE HTTP SERVER how to open or get the data of a file from the server using Automate? It's my 1st time to learn http server. if i learned maybe i can use esp32 for the server.

phonetus tus

unread,
Oct 19, 2025, 6:37:21 PMOct 19
to Automate for Android
Currently I'm using gdrive to sync a file from my 12pcs android phone. i want to learn http server to make the syncing locally & faster. i dont know if this is possible thru http server & Automate.

Henrik "The Developer" Lindqvist

unread,
Oct 20, 2025, 3:03:57 PMOct 20
to Automate for Android
Use the HTTP request block get data from the remote HTTP server.

Henrik "The Developer" Lindqvist

unread,
Oct 20, 2025, 3:06:04 PMOct 20
to Automate for Android
Use the HTTP accept block to receive incoming HTTP requests, i.e let Automate act as a web server.

phonetus tus

unread,
Oct 24, 2025, 6:50:23 AMOct 24
to Automate for Android
i'm trying these blocks, i can't figure out how to use it, even AI can't help. is there a simple flow example for these http blocks in the community?

Henrik "The Developer" Lindqvist

unread,
Oct 24, 2025, 9:58:32 AMOct 24
to Automate for Android
It's as simple as:
  1. Flow beginning
  2. HTTP accept
  3. HTTP response: Response content type=text/plain, Response content=Hello world!
  4. (connect #3 OK to #2 IN)
Then browse or HTTP request to http://<ip to your phone>:8080

phonetus tus

unread,
Oct 26, 2025, 4:26:17 AMOct 26
to Automate for Android
Your example doesn't work.
i followed your example including input in http response.

Henrik "The Developer" Lindqvist

unread,
Oct 26, 2025, 2:56:41 PMOct 26
to Automate for Android
Sorry forgot:
  1. Flow beginning
  2. HTTP accept: Network interface=Wi-Fi
  1. HTTP response: Response content type=text/plain, Response content=Hello world!
  2. (connect #3 OK to #2 IN)

phonetus tus

unread,
Oct 26, 2025, 11:03:10 PMOct 26
to Automate for Android
Thanks, it works.

1. Is there a block that check the IP address of the device?
2. In wifi router dashboard, connected device's name can be seen on connected devices lists, it is possible Automate can get this device name?

Damian Trotter

unread,
Oct 31, 2025, 8:52:10 AM (12 days ago) Oct 31
to Automate for Android
What about when using the property "Request URI" of the 'Http accept' block to set\specify a specific endpoint argument?  If I use say "mms" or /mms" here, it doesn't seem work with http://<MYIP>:<port>/mms or any arguments actually.  The only time I can get it to work is when I leave "the Request URI" property blank.  I apologize if this has already been addressed.  Thank you.

Henrik "The Developer" Lindqvist

unread,
Oct 31, 2025, 12:46:03 PM (12 days ago) Oct 31
to Automate for Android
  1. As the documentation say, "See IP addresses in system About phone settings, or use the Data network default or Wi-Fi network connected block."
  2. To get the names of Wi-Fi networks, either use the Wi-Fi network connected block for the currently connected network,  or the Wi-Fi network scan block for nearby networks

Henrik "The Developer" Lindqvist

unread,
Oct 31, 2025, 4:39:35 PM (12 days ago) Oct 31
to Automate for Android
/mms should work. You can try /mms/? if your browser appends an / somehow.

The Dude MI6

unread,
Nov 2, 2025, 12:02:14 AM (11 days ago) Nov 2
to Automate for Android
Httpaccept block does not respond to any endpoint (or anything else) when "Request content type" property is set to "Image(any type of image)".  Doesn't matter if "Save to file" option is used or not.  If I change "Request content type" to "Form-data" (or "Any"), it then works, but renames the image file (jpg) being sent (time stamped) and saves it as *.bin file?  Output variables all seem to be 'string' type, including "Request content body", not carrying the actual payload of Jpg image?  Is there a global variable here that I can access to use "Write file" block instead or maybe "Copy content".  My goal is to setup a Http listener (Httpaccept) that when triggered by a python script, downloads a subject(string), message(string) and image(jpg) that can then be sent via SendMMS block thru mobile carrier.  Thank you.

Henrik "The Developer" Lindqvist

unread,
Nov 2, 2025, 9:31:45 AM (10 days ago) Nov 2
to Automate for Android
The Request content type must match what the request is sending. As the documentation say:
"To process an HTML <form>, save the request preferably to a file if expecting large form inputs, use WWW form or Form-data as content type, then use the urlDecode function to decode the former, or the File multipart extract block extract form inputs and file uploads from the latter."
Reply all
Reply to author
Forward
0 new messages