Hi.. can anyone confirm this webserver is not working on windows11.. i always get error "COULD NOT START THE SERVER" using windows11 OS..
anyone can help? Thank you
Announcement
Collapse
No announcement yet.
Webserver AMS8 - LuaSocket HTTP
Collapse
X
-
these example is sending command or data from Web to the server which is the ams app. is the AMS App can send data to the Web server?
example on the AMS app there is a button to send command or data or string into the web and display those string into the web..
Leave a comment:
-
Is it possible with this LuaSocket HTTP get ip from connected users on AMS Web server ?!
Leave a comment:
-
I have to say very intresting work your doing here Desrat, keep it up
Leave a comment:
-
With a little help from a friend (StreetRat) this version stores "Get" data and "Post" data in global variables _G["GET"] & _G["POST"], this allows you to pass more data to the app than the 255 char URL limit imposed when using the "POST" method.Attached Files
Leave a comment:
-
can anyone shed any light on how to get the full HTTP headers browser request so I can look at implementing POST requests into the demo..
I don't understand the documentation included with LuaSocket I know its all within the client:receive() function but I can't get my head around it..
Leave a comment:
-
No worries Worm we all have priorities mate - your original code was the inspiration and as you say you put me on the right path to the eventual fix - so thank you.Originally posted by Worm View PostHa!! So I was at least going down the right fork in the road. Sorry, I wasn't able to look in depth, been traveling again and that makes it a bit hard to focus on any one thing.
@Webultra
Thats an interesting use of the application - I definately think this warrants more time spent on it - It opens a whole new world of interaction IMHO and I hope that it inspires more people to publish examples of what uses they find.
Leave a comment:
-
After looking the ams webserver apz I note that my example project (lua socket tcp coroutine) is almost the same xD . I was able to modify it to distinguish (with string.match function) between a web client connection and my client app connection.
I also made a function that queries a sqlite database and shows the result as a web page.
Leave a comment:
-
Ha!! So I was at least going down the right fork in the road. Sorry, I wasn't able to look in depth, been traveling again and that makes it a bit hard to focus on any one thing.Originally posted by Desrat View PostIssue resolved - status codes are required in server responses or droid browser rejects the data
http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html
Leave a comment:
-
yeah so many things that I didn't understand when I started out and which I now whizz through
As for this apz the requirement for me was specifically interaction with my AMS apps remotely and its really working well now that I have the ability to add remote monitoring - not bad to say I started back in 2006 with questions like this
Also as this is a self help forum that I've gained so much knowledge and help from, whenever I get the chance I always give back with examples/code - nothing worse then searching for an answer to a question and find the exact same thing on a forum with the original poster saying nothing more than "Issue Resolved" if you find an answer then share it - thats what I think at least
Leave a comment:
-
Hey this is great thanks. I remember when Worm first made this i didn't understand how to use it, smiling at how much i've changed since then.
Have you heard of Dropbox, i'm sure you have. Did you know you can host a website from your Dropbox folder and access it using your mobile browser, all for free ( 2 gig minimum anyway ). And also, if you download Opera Mini they have other tools including a webserver and storage options all there for free too.
Hope this helps - thanks for sharing your project - oh and by the way, i downloaded and ran the Android VM image yesterday because of you, that was a good experience.
Thanks again mate :yes
Leave a comment:
-
thx - adjusted the original apz example to be Android compatible and attached below - also requirement to load up a temp page on a custom action is no longer required - reduces a good 500ms lag on mobile devicesOriginally posted by Tone View Postwell done mate :yes
Attached Files
Leave a comment:
Leave a comment: