Jump to content

Dhilip89

Active Members
  • Posts

    340
  • Joined

  • Last visited

About Dhilip89

  • Birthday 11/29/1989

Profile Information

  • Member Title
    Insane AutoIt Coder
  • Location
    Malaysia, Johor
  • WWW
    http://dhilip89.hopto.org/
  • Interests
    Most IT related stuff.

Recent Profile Visitors

631 profile views

Dhilip89's Achievements

Universalist

Universalist (7/7)

11

Reputation

  1. What is this? This is designed for allow any AutoIt scripts (must include UDF provided) to call remote functions (host script written in AutoIt) and consume returned results. How to allow remote client to call functions? Edit the AppHost.au3, change the following: Const $DEFAULT_RPC_ACCESS = $RPC_ACCESS_LOCALHOST to Const $DEFAULT_RPC_ACCESS = $RPC_ACCESS_REMOTE - Screenshots: Download Links: (Version 1.0) : http://www.mediafire.com/download/vcc1lacvmts21xd/AutoIt_RPC.zip
  2. Check out version 0.3 Added stress test animation (in GIF)
  3. Thank you, it was my random idea then I made this to practice my rusted AutoIt coding skill
  4. Thanks, starting from version 0.3 both GET and POST data is supported.
  5. What is NetFlare Web Server? NetFlare is a standalone web server written in pure AutoIt3 with some features: Virtual Hosts Server-side scripting For testing virtual host capability, editing etchosts file is required in most cases. File: C:WindowsSystem32driversetchosts 127.0.0.1 this.is.my.dom 127.0.0.1 private.mycompany.com Souce code (Daemon Main): #include "./Lib/Net/Http/HttpServer.au3" #include "./Lib/IO/Console.au3" _Main() Func _Main() HttpServer_SetPort(80) HttpServer_RegisterHost("this.is.my.dom") HttpServer_RegisterHost("private.mycompany.com", @ScriptDir & "\WebRoot\custompath\deeper\private.mycompany.com") ConsoleWrite("NetFlare Web Server 0.2, By Dhilip89" & @CRLF & @CRLF) ConsoleWrite("Registered virtual hosts: " & @CRLF) $HostList = HttpServer_GetRegisteredHosts() For $i = 0 To HttpServer_CountRegisteredHosts() - 1 ConsoleWrite("[" & $i+1 & "] " & $HostList[$i] & @CRLF) Next HttpServer_Start() ConsoleWrite(@CRLF & "Server is running..." & @CRLF) While 1 Sleep(1000) WEnd EndFunc - Screenshots (0.2): Screenshots (0.3): Animated GIF (Stress testing, using meta refresh): <= Click or download to view Download Links: (Version 0.1): http://www.mediafire.com/download/an1gngni6qeh5x9/NetFlare_v0.1.zip (Version 0.2): http://www.mediafire.com/download/3a88m1sgyrth48a/NetFlare_v0.2.zip (Version 0.3): http://www.mediafire.com/download/q3prydlbkygl7jd/NetFlare_v0.3.zip
  6. Update: replaced obsolete script with better script found in my backup.
  7. Hello, This is another web server project written completely in AutoIt. Why another server again? because most of the web server script in this forum can't response all clients at the same time. Features: Ability to handle, reply many users at a timeResume download capability (206 Partial Content)Support large filesChanges: Ver 0.3.5 - Initial release. Ver 0.3.6 - Fixed partial content file corruption bug. How to test? Just place a very large file into httpdocs folder, then open http://127.0.0.1/yourfile.ext - You may pause and resume download (but please verify the file checksum) Any suggestions, modifications are welcomed! This is very experimental code, Do NOT use it as production server! Source code(use latest beta): HTTPd-0.3.6.zip
  8. Very nice work on the script! I've found that the script doesn't work well with wide characters, so this is a fix from me: Just change: DllStructSetData ($pMem, 1, Asc (StringMid ($szMessage, $i, 1)), $i) To: DllStructSetData ($pMem, 1, AscW (StringMid ($szMessage, $i, 1)), $i) ;; Create a unicode string;; $iSize = StringLen ($szMessage) + 1 $pMem = DllStructCreate ("ushort[" & $iSize & "]") For $i = 0 To $iSize DllStructSetData ($pMem, 1, AscW (StringMid ($szMessage, $i, 1)), $i) Next DllStructSetData ($pMem, 1, 0, $iSize)
  9. Strange... Try this link see whether the file exist or not: http://www.autoitscript.com/forum/index.ph...s&showcat=1
×
×
  • Create New...