jvanegmond

Powerful HTTP Server in Pure AutoIt

170 posts in this topic




Share this post


Link to post
Share on other sites

Manadar, if you want me to temporally host some stuff, I'd be happy to :P

I'd like that, except I don't access to my files or my domain any more since everything is just down.

Share this post


Link to post
Share on other sites

#105 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites

#108 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites

#111 ·  Posted (edited)

Thanks Brett, Thanks Manadar. Really appreciate that. :D

Edited by BinaryBrother

Share this post


Link to post
Share on other sites

Any Ideas For File Upload Solution ???????? ^_^

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

The server seems to get DoSed very easily.

Hold F5 for a few seconds and the server lags like hell. :D

Share this post


Link to post
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 ?!

Share this post


Link to post
Share on other sites

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

Looking at the feature list I wrote in the first post, WAMP does not have 3 of them. Also, WAMP is not in pure AutoIt.

Share this post


Link to post
Share on other sites

Great work Manadar, just tried your web servers and work fine. :D


When the words fail... music speaks

Share this post


Link to post
Share on other sites

Just playing around here. I downloaded v1.1 and the _HTTP_SendError() function is missing from the basic and post servers.

Share this post


Link to post
Share on other sites

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