wraithdu Posted April 2, 2010 Author Share Posted April 2, 2010 (edited) I've updated the Server Control app to v1.0.1.2. It's a bit more user friendly now. @JRowe Please update your server's copy as well if you wish to continue to maintain it there. Thanks! Edited April 2, 2010 by wraithdu Link to comment Share on other sites More sharing options...
BennyBB Posted April 10, 2010 Share Posted April 10, 2010 Hey, does someone know a free web server or webhost, which supports AuCGI? I'm really looking for a good place to upload my AuCGI related stuff and hope that someone knows a solution . Thanks in advance Link to comment Share on other sites More sharing options...
Shafayat Posted April 10, 2010 Share Posted April 10, 2010 I don't think you'll get a free one. I searched a lot and never found. [Not using this account any more. Using "iShafayet" instead] Link to comment Share on other sites More sharing options...
yejier Posted April 19, 2010 Share Posted April 19, 2010 I'm poor in English I think that,"test.web" have some wrong. <form action="test.web" method="POST"> <button name="go" type=submit value="go">GO!</button> <button>Reset</button> Link to comment Share on other sites More sharing options...
wraithdu Posted April 19, 2010 Author Share Posted April 19, 2010 That post is... indecipherable. Link to comment Share on other sites More sharing options...
JRowe Posted April 19, 2010 Share Posted April 19, 2010 Almost, anyway. He's saying that the test.web demo is missing it's closing </form> tag, lol. I'll fix the upload tonight. [center]However, like ninjas, cyber warriors operate in silence.AutoIt Chat Engine (+Chatbot) , Link Grammar for AutoIt , Simple Speech RecognitionArtificial Neural Networks UDF , Bayesian Networks UDF , Pattern Matching UDFTransparent PNG GUI Elements , Au3Irrlicht 2Advanced Mouse Events MonitorGrammar Database GeneratorTransitions & Tweening UDFPoker Hand Evaluator[/center] Link to comment Share on other sites More sharing options...
wraithdu Posted April 19, 2010 Author Share Posted April 19, 2010 It should probably also be updated to work with the new random script name thing:<form action="<?au3 inline($_SCRIPT_NAME) ?>" method="POST"> Link to comment Share on other sites More sharing options...
JRowe Posted April 19, 2010 Share Posted April 19, 2010 The post isn't to the temp script, if you recall, but to the page, which is parsed by the handler, and then converted into a temp script. The reference to the script/page name from the existing POSTs still work. [center]However, like ninjas, cyber warriors operate in silence.AutoIt Chat Engine (+Chatbot) , Link Grammar for AutoIt , Simple Speech RecognitionArtificial Neural Networks UDF , Bayesian Networks UDF , Pattern Matching UDFTransparent PNG GUI Elements , Au3Irrlicht 2Advanced Mouse Events MonitorGrammar Database GeneratorTransitions & Tweening UDFPoker Hand Evaluator[/center] Link to comment Share on other sites More sharing options...
wraithdu Posted April 19, 2010 Author Share Posted April 19, 2010 Oh yeah, well, what I posted is actually the script's name... so I'm right anyway hahahahaha!!!! Link to comment Share on other sites More sharing options...
JRowe Posted April 19, 2010 Share Posted April 19, 2010 Lol, that works. [center]However, like ninjas, cyber warriors operate in silence.AutoIt Chat Engine (+Chatbot) , Link Grammar for AutoIt , Simple Speech RecognitionArtificial Neural Networks UDF , Bayesian Networks UDF , Pattern Matching UDFTransparent PNG GUI Elements , Au3Irrlicht 2Advanced Mouse Events MonitorGrammar Database GeneratorTransitions & Tweening UDFPoker Hand Evaluator[/center] Link to comment Share on other sites More sharing options...
yejier Posted April 20, 2010 Share Posted April 20, 2010 Great job,but still need more examples to illustrate the usage.JRowe ćwraithdu:) Link to comment Share on other sites More sharing options...
Andreik Posted July 16, 2010 Share Posted July 16, 2010 (edited) AUCGI can be used with any web server or the web server need something more? For example I want to use Manadar's Web Server. It's need something special to make AUCGI to run with this server? Edited July 16, 2010 by Andreik When the words fail... music speaks. Link to comment Share on other sites More sharing options...
wraithdu Posted July 16, 2010 Author Share Posted July 16, 2010 The server needs to support calling a CGI handler. I don't think Manadar's has this functionality. In the old thread, someone posted a method to make this work with IIS (source file path is passed to the handler via environment variable instead of command line param). I hope to have that integrated soon. Link to comment Share on other sites More sharing options...
Andreik Posted July 16, 2010 Share Posted July 16, 2010 (edited) Thanks wraithdu. I just got the LightTPD and I want to test AUCGI with a simple example. I want to create a simple login form but I can't figure out how this work. How I can get values from input boxes? And how can I redirect to a specific html file after I verify the user and the password? expandcollapse popup<?au3 ConsoleWrite("Content-Type: text/html") ?> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="content-type"> <title>AuCGI Test</title> </head> <body> <form name = "login" action="test.web" method="POST"> <center><br><br><br> <input id="user" name="user" value="Username"><br><br> <input id="pwd" name="pwd" value="password" type="password"><br><br> <button name="submit" value="submit">Submit</button> <?au3 If _POST("submit") Then $LOGGED = FALSE $INDEX = 1 $FILE = FileOpen("credentials.txt",0) WHILE TRUE $LINE = FileReadLine($FILE,$INDEX) If @error then ExitLoop $SPLIT = StringSplit($LINE,@TAB) If IsArray($SPLIT) Then IF $SPLIT[1] == '[username_value]' and $SPLIT[2] = '[password_value]' then $LOGGED = TRUE EXITLOOP ENDIF ENDIF $INDEX += 1 WEND FileClose($FILE) IF $LOGGED THEN ConsoleWrite('<meta HTTP-EQUIV="REFRESH" content="0; url=correct.html">') ;maybe exists something more good else ConsoleWrite('<meta HTTP-EQUIV="REFRESH" content="0; url=incorrect.html">') endif EndIf ?> </form> </body></html> Edited July 16, 2010 by Andreik When the words fail... music speaks. Link to comment Share on other sites More sharing options...
wraithdu Posted July 16, 2010 Author Share Posted July 16, 2010 (edited) First off, _POST works like _POST(<name>) returns <value>. The id is your own internal value. So, _POST("user") = "Username". This should get you started. Please note the changes to the first few lines and the form's 'action=' <?au3 #NoTrayIcon _standardHeader() ?> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="content-type"> <title>AuCGI Test</title> </head> <body> <form name = "login" action="<?au3 inline($_SCRIPT_NAME) ?>" method="POST"> <center><br><br><br> <input id="user" name="user" value="Username"><br><br> <input id="pwd" name="pwd" value="password" type="password"><br><br> <button name="submit" value="submit">Submit</button> <button>Reset</button> <?au3 If _POST("submit") Then echol("") echol("") echol("user: " & _POST("user")) echol("pass: " & _POST("pwd")) EndIf ?> </form> </body></html> EDIT: You can always do a echol($_POST_raw) to see exactly what POST data you're getting. Edited July 16, 2010 by wraithdu Link to comment Share on other sites More sharing options...
Andreik Posted July 16, 2010 Share Posted July 16, 2010 Thank you wraithdu, it works. I will start learn about that. When the words fail... music speaks. Link to comment Share on other sites More sharing options...
RulerOf Posted July 16, 2010 Share Posted July 16, 2010 (edited) Regarding your post here: The new thread for this project is HERE. Me and JRowe have picked up development and I've coded a much improved version of AuCGI. Your changes for IIS support would be trivial to implement in the new codebase. However it would be best if there was a way for AuCGI to tell, internally, if it was running under IIS or not. Do you know if that is possible? Then it wouldn't be necessary to maintain a separate version of AuCGI for IIS based servers. There may very well be a method for determining what server is calling AuCGI. You seem quite interested in being able to run this on IIS (as I am, too!) so I'll grab the latest AuCGI and web.au3 code and roll up some changes or patches if you like. In the meantime, I'll investigate the options. I'll post back either in a couple hours or by Monday and let ya know! In the meantime if I get a chance, I'll keep this thread subscribed if you've got anything to add Oh one more thing: It seems that passing serverside info to a CGI application is supposed to be done through environment variables, so it's likely that adding support for IIS/Apache/Tomcat/whatever will all be extensions of the same code base, FWIW. Thanks again guys __________ Update: Here's a snippet of what IIS is passing to the CGI module: SERVER_SOFTWARE: Microsoft-IIS/7.0 SERVER_NAME: drew-dc.drew.local GATEWAY_INTERFACE: CGI/1.1 SERVER_PROTOCOL: HTTP/1.1 SERVER_PORT: 80 REQUEST_METHOD: GET PATH_INFO: /AutoIt/test.auw PATH_TRANSLATED: C:\inetpub\wwwroot\AutoIt\test.auw SCRIPT_NAME: /AutoIt/test.auw REMOTE_HOST: 192.168.1.61 REMOTE_ADDR: 192.168.1.61 Ironically, all of these variables seem to be declared in web.au3, so I'm going to have to read them an additional time in AuCGI if it detects IIS. If anyone has another suggestion though, I'd be welcome to it Should have a code snippet ready soon. Edited July 16, 2010 by RulerOf Link to comment Share on other sites More sharing options...
wraithdu Posted July 16, 2010 Author Share Posted July 16, 2010 (edited) After looking at AuCGI's environment after being called by LightTPD, I don't see the PATH_ variables. But can you tell me if you have SCRIPT_FILENAME and what the value is? Do you also maybe have DOCUMENT_ROOT? I see a few options: 1) Check whether either PATH_TRANSLATED or SCRIPT_FILENAME exist and is a valid path 2) Use DOCUMENT_ROOT and SCRIPT_NAME to create the full path Option 2 is better if possible. The correct full path to the script can then be set in the _envInit() function to the $_SCRIPT_FILENAME variable. Edited July 16, 2010 by wraithdu Link to comment Share on other sites More sharing options...
BasicOs Posted July 21, 2010 Share Posted July 21, 2010 Not to go out of topic, but I would ask if you know something about any firefox pluging, where you open a plain file.au3 like www.oneweb.com/file.au3 and this pluging could redirect/remap all Autoit Windows commands into similar legal web outputs, as by example msgbox(0,...) into javascript msgbox("")? Thanks if you got some link about this Autoit-Reader (Web). Saludos Autoit.es - Foro Autoit en EspaƱol Word visitors Image Clustrmap image: - Football Spanish team - Spanish team: Casillas, Iniesta, Villa, Xavi, Puyol, Campdevilla, etc..Programando en Autoit+Html - Coding Autoit-Html - Arranca programas desde Internet - Preprocesador de Autoit a http Link to comment Share on other sites More sharing options...
wraithdu Posted July 21, 2010 Author Share Posted July 21, 2010 Not a chance. Let's leave that one go right here. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now