Announcement

Collapse
No announcement yet.

Webserver AMS8 - LuaSocket HTTP

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • telco
    replied
    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

    Leave a comment:


  • telco
    replied
    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:


  • saricnet
    replied
    Is it possible with this LuaSocket HTTP get ip from connected users on AMS Web server ?!

    Leave a comment:


  • Desrat
    replied
    ok now it is...weird

    Leave a comment:


  • Desrat
    replied
    why is this thread not displaying any more replies???

    Leave a comment:


  • Desrat
    replied
    thank you..

    Leave a comment:


  • gremlin
    replied
    I have to say very intresting work your doing here Desrat, keep it up

    Leave a comment:


  • Desrat
    replied
    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:


  • Desrat
    replied
    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:


  • Desrat
    replied
    Originally posted by Worm View Post
    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.
    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.

    @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:


  • webultra
    replied
    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:


  • Worm
    replied
    Originally posted by Desrat View Post
    Issue resolved - status codes are required in server responses or droid browser rejects the data

    http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html
    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.

    Leave a comment:


  • Desrat
    replied
    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:


  • Tone
    replied
    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:


  • Desrat
    replied
    Originally posted by Tone View Post
    well done mate :yes
    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 devices
    Attached Files

    Leave a comment:

Working...
X