Dellairion Posted July 25, 2008 Share Posted July 25, 2008 (edited) Hi there, What i'm trying to do is to create a web server (something like apache). Source code has been updated images work now. And now it also supports AuCGI (just tested the basics). Hmms, can someone tell me how cookies and etags work? I'm a noob at those things... Download: http_server0.0.0.8.zip Dellairion Edited July 26, 2008 by Dellairion Hot Key ControllerPinball Trainer? Link to comment Share on other sites More sharing options...
ProgAndy Posted July 25, 2008 Share Posted July 25, 2008 Just send it binary, but with right MIME-Type You could look at AutoWEB, a server made by me Btw: what does your _GZIPEncode do? It just converts String to Binary right? Then StringToBinary would be faster *GERMAN* [note: you are not allowed to remove author / modified info from my UDFs]My UDFs:[_SetImageBinaryToCtrl] [_TaskDialog] [AutoItObject] [Animated GIF (GDI+)] [ClipPut for Image] [FreeImage] [GDI32 UDFs] [GDIPlus Progressbar] [Hotkey-Selector] [Multiline Inputbox] [MySQL without ODBC] [RichEdit UDFs] [SpeechAPI Example] [WinHTTP]UDFs included in AutoIt: FTP_Ex (as FTPEx), _WinAPI_SetLayeredWindowAttributes Link to comment Share on other sites More sharing options...
Dellairion Posted July 25, 2008 Author Share Posted July 25, 2008 (edited) Thnx for reply I will take a look at it gzip = data compression It send the page in hex to the client. Note: Content-Encoding should be gzip when doing that so the client knows what type of compression is used. EDIT: Your script seems to give some errors... C:\Users\Terminator\Desktop\AutoIt 07-08\AutoWEB\webserver.au3(326,32) : ERROR: _ArraySort() called with wrong number of args. _ArraySort($MIMETypes,0,0,0,2,0) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ D:\Program Files\AutoIt3\Include\Array.au3(884,89) : REF: definition of _ArraySort(). Func _ArraySort(ByRef $avArray, $iDescending = 0, $iStart = 0, $iEnd = 0, $iSubItem = 0) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ I'm using AutoIt v3.2.12.1 Edited July 25, 2008 by Dellairion Hot Key ControllerPinball Trainer? Link to comment Share on other sites More sharing options...
Dellairion Posted July 26, 2008 Author Share Posted July 26, 2008 Source code updated... Hot Key ControllerPinball Trainer? Link to comment Share on other sites More sharing options...
ProgAndy Posted July 26, 2008 Share Posted July 26, 2008 gzip = data compressionIt send the page in hex to the client.Note:Content-Encoding should be gzip when doing that so the client knows what type of compression is used.I know, what GZIP does, but just converting to hex is no compression, so this function is not needed yet *GERMAN* [note: you are not allowed to remove author / modified info from my UDFs]My UDFs:[_SetImageBinaryToCtrl] [_TaskDialog] [AutoItObject] [Animated GIF (GDI+)] [ClipPut for Image] [FreeImage] [GDI32 UDFs] [GDIPlus Progressbar] [Hotkey-Selector] [Multiline Inputbox] [MySQL without ODBC] [RichEdit UDFs] [SpeechAPI Example] [WinHTTP]UDFs included in AutoIt: FTP_Ex (as FTPEx), _WinAPI_SetLayeredWindowAttributes Link to comment Share on other sites More sharing options...
Dellairion Posted July 26, 2008 Author Share Posted July 26, 2008 hmms k... ill turn it off Btw, i'm trying to add AuCGI atm So far so good... Hot Key ControllerPinball Trainer? 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