Jump to content

Recommended Posts

Posted

Just send it binary, but with right MIME-Type :P You could look at AutoWEB, a server made by me :P

Btw: what does your _GZIPEncode do? It just converts String to Binary right? Then StringToBinary would be faster :o

*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

Posted (edited)

Thnx for reply

I will take a look at it :P

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 by Dellairion
Posted

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.

I know, what GZIP does, but just converting to hex is no compression, so this function is not needed yet :P

*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

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
×
×
  • Create New...