Jump to content

the DtTvB's AutoIt Web Server


the DtTvB
 Share

Recommended Posts

Uhh, sorry that I haven't help with the code, I am too busy these days. I will try to help as much as I can.

Wow, PHP, never know of this! Really cool.

About the name, The AutoIt Community Web Server would be great.

For the small name, what about Auws?

About configging the program, what about placing a script into a site, say, config.aux?

I think it would be fairly easy to do. For preventing other people to access it, I can getEnv('REMOTE_ADDR')

Link to comment
Share on other sites

  • Replies 171
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

If someone can give me a template style for the admin panal (web-based) i can make the config thing.

Rofl, I've noticed when making these types of things, I spend like 3/4 of the time making a nice site for it, not the actual code.

Is this new?

Link to comment
Share on other sites

Yeah i cant do styling but i can do main code. I love web-based autoit.

yeah you've made some real nice apps with my web-based thing...

blogger, forum, guestbook.....

The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN

Link to comment
Share on other sites

@the DtTvB

did you commit an modified old version over the new one?

there are several changes missing i did yesterday.

they where necessary for compatibility with php's header() function...

and did you know that StdoutRead() is a blocking function.

do Rev.20 will hang forever if the cgi interpreter doesent output something.

however.

what was the purpose of your update?

i see the ZZID env variables

_m(), _e()

and you removed the 'scite compatible' error messages for the server.conf parser (why?)

and the 'reload configuration' from tray menu is gone too... ;)

edit:

the reason why i ask you so many questions is because i want to merge either 19 to 20 or 20 to 19...

Python 2.5 and ActivePerl 5.6.1 Worked 'out of the box'! yay :lmao:

... with Rev.19 :evil:

Edited by piccaso
CoProc Multi Process Helper libraryTrashBin.nfshost.com store your AutoIt related files here!AutoIt User Map
Link to comment
Share on other sites

@the DtTvB

did you commit an modified old version over the new one?

there are several changes missing i did yesterday.

they where necessary for compatibility with php's header() function...

and did you know that StdoutRead() is a blocking function.

do Rev.20 will hang forever if the cgi interpreter doesent output something.

however.

what was the purpose of your update?

i see the ZZID env variables

_m(), _e()

and you removed the 'scite compatible' error messages for the server.conf parser (why?)

and the 'reload configuration' from tray menu is gone too... ;)

edit:

the reason why i ask you so many questions is because i want to merge either 19 to 20 or 20 to 19...

Python 2.5 and ActivePerl 5.6.1 Worked 'out of the box'! yay :lmao:

... with Rev.19 :evil:

Yes, I am sorry.

I tried rev. 20 with PHP and it worked.

And about CGI, I forgot about it that it waits for the output.

You know that if a client doesn't set output, the environment variable won't be set,

and therefore, won't be deleted. So I used ZZID to provide unique ID for each request.

_m displays an informational balloon message, and _e displays an error message.

About reload configuration, I don't even notice that it does exists!

I am also going to test perl also.

Link to comment
Share on other sites

DtTvB, thanks for reminding me to that HTTP_* issue

Spyro, this already works for cgi.

and there are 2 examples in public_html

one for Rev19 and one for 20

I'm currently merging Rev19 & 20

in 21 there will only be one...

do you know the power of .htaccess ?

this wont happen overnight.

but you can count on Basic Authentication

CoProc Multi Process Helper libraryTrashBin.nfshost.com store your AutoIt related files here!AutoIt User Map
Link to comment
Share on other sites

Yes i know about .htaccess. All iwa sasking is the authentication power of htaccess, not the full out htaccess features. Basic authetication would be good. something like this function maybe:

auth("Relm", $username_array, $password_array, "<b>Code to show if authenitcation fails</b>")

if right username/pwd is entered, it will return the username of the logged in user. if it fails, it will return 0.

as for the username/password array, it would look like this:

dim $username_array[4] = ['user1', 'user2', 'user3']

dim $password_array[4] = ['user1password', 'user2password', 'user3password']

i dunno something like that. it would be powerful, i guess if it was like that.

Link to comment
Share on other sites

I already know how it works.

There is a base 64 encoder/decoder on this forum for when you need it to de/encode the passwords. as soon as i get a basic authentication system, i will make 2 things:

1. Admin interface for this server

2. A Interface for blocking access or only allowing acces from certin users with the authentication thing.

Link to comment
Share on other sites

Does POST work in lastest vers? Cuz when I add

Global $POST = ConsoleRead(EnvGet("CONTENT_LENGTH"))

it just hangs. I know my older version worked(self-brew), but its alot slower.

Aswell do cookies work?

Edited by Chip
Link to comment
Share on other sites

Does POST work in lastest vers? Cuz when I add

Global $POST = ConsoleRead(EnvGet("CONTENT_LENGTH"))
oÝ÷ Ú+cºËajx,"IèÂl¨×«½êìð¢¹vÇ¥}ºÞÁ»­Ûl¬0zY]¡Ê('¬Âäþ«¨µé¨²× Ën}ü(®K'£§r[x¢"zȶØ^­ê®zË[¡Ü­«pk&®¶­sdvÆö&Âb33cµõ5B¢bVçdvWBgV÷C´4ôåDTåEôÄTäuDgV÷C²fwC²FVà b33cµõ5BÒ6öç6öÆU&VBVçdvWBgV÷C´4ôåDTåEôÄTäuDgV÷C²¢VæD

ConsoleRead("") or ConsoleRead(0) just hangs, but that's autoit specific.

i don't have problems like this, can you be a bit more specific?

but this shouldn't be a problem with html...

CoProc Multi Process Helper libraryTrashBin.nfshost.com store your AutoIt related files here!AutoIt User Map
Link to comment
Share on other sites

did you know...

HTTPS is possible with Stunnel

but you need to configure it.

there is a commented section in stunnel.conf

just uncomment it and change connect = <nr> to the port your server runs

and start stunnel

[https]
accept  = 443
connect = 80
TIMEOUTclose = 0

you may want to use your own certificate if you want to go public

but there is a certificate supplied which suits fine for testing

just tested with stunnel 4.20, works like a charm :P

CoProc Multi Process Helper libraryTrashBin.nfshost.com store your AutoIt related files here!AutoIt User Map
Link to comment
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
 Share

  • Recently Browsing   0 members

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