Jump to content

Powerful HTTP Server in Pure AutoIt


jvanegmond
 Share

Recommended Posts

Link to comment
Share on other sites

hi

works fine for me

somehow traytip wont work for me?

i added

TrayTip("AutoIt Web Server", "Server created on http://" & $IP & "/",10)

MsgBox(0x20, "AutoIt Web Server", "Server created on http://" & $IP & "/")

...

Case ".css"

_SendFile($sRootDir & "\" & $Request, "text/html", $Socket[$x])

TrayTip("AutoIt Web Server", "Server created on http://" & $IP & "/",10)
sleep(3000)
MsgBox(0x20, "AutoIt Web Server", "Server created on http://" & $IP & "/")

Edit: oh, sorry:P Old topic xD

Edited by Chris86
Link to comment
Share on other sites

  • 1 month later...

As promised :D

This is the orginal (as far as I know.)

Server_Original.zip

This is my example on using sessions, and expanding it to being more webserver like. Expanded may be a bit buggy. But I don't care because the expanded is just an example of how it can be expanded. Please don't be stupid enough to use it as a real server or even a testing one. Use something tried and tested like Apache, Abyss etc...

Server_Sessions.zip

Edited by BrettF
Link to comment
Share on other sites

  • 2 weeks later...
  • 4 months later...

I've made an update.

Changes:

- Changes some function names to follow some UDF standards

- Variable names more descriptive (and less confusing)

- Split up the server into 3 parts: Basic server, post server, session server

- Added some documentation, including "How to choose the right server".

- Put my website in the /www/ folder as an example.

- With the POST example some AJAX is included for great success.

Please check it out again when you have an interest and when you have time.

Link to comment
Share on other sites

this looks very nice and i am really sorry to have to say this but.... wamp?!

[u]My Au3 Scripts:[/u]____________(E)Lephant, A Share download manager (RS/MU etc)Http1.1 Console, The Ez Way!Internet Reconnection Automation Suite & A Macro Recording Tool.SK's Alarm Clock, Playing '.MP3 & .Wav' Files._________________Is GOD a mistake of the Humanity Or the Humanity is a mistake of GOD ?!

Link to comment
Share on other sites

  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...