"Any intelligent fool can make things bigger and more complex... It takes a touch of genius and a lot of courage to move in the opposite direction."
(Albert Einstein)

Welcome to G-WAN

G-WAN is a small-footprint (50 KB) Web server. It supports GET, HEAD, POST, PUT, DELETE and OPTIONS, conditional requests and directory listings. G-WAN is also provably safer (speed is a side-effect of good designs).

G-WAN is an application server (hence the other 50 KBs). Its C servlets (that you just 'edit & play') are as fast as static contents (benchmark the 'hello.c' servlet sample against a Perl, PHP, Java or ASP.Net equivalent).

Why use C rather than a 'safer' more modern language for G-WAN servlets?

First: Perl, Python, Java, ASP.Net and G-WAN are written in C -for a reason. Second: if you already know C, how many languages do you need to learn? Third: C can be as safe as any other language (see the crash servlet below).

As the best way to understand G-WAN's capabilities is to play with it, just click on the links below (press the browser's 'back' button to return to this page):

  • the basic (in)famous 'Hello World' sample (used to benchmark servlets)
          [run] [src]
  • make an HTPP request using the HEAD method to get response headers
          [run] [src]
  • build an HTPP response with your own custom response headers
          [run] [src]
  • query the the European Central Bank to get 34 currency exchange rates
          [run] [src]
  • use an HTML (GET or POST) template form to get email from users
          [run] [src]
  • use an AJAX (GET or POST) form to calculate the loan of your choice
          [run] [src]
  • benchmark the time2rfc() G-WAN call against Windows' Wininet API call
          [run] [src]
  • attack the G-WAN server with hundreds of malicious URIs (be creative!)
          [run] [src]
  • run a very nasty C servlet to make G-WAN crash (it will not crash)
          [run] [src]

PLEASE, attack G-WAN on your PC rather than on someone else server. And if you find an issue then contact us -we will give credit to all valuable contributions.

Notes:

The links on this page point to your G-WAN server on "". For them to work, you have first to run gwan.exe.

To get the highest performances on your machine, run gwan.exe, reboot and then benchmark G-WAN (this is only necessary one time -to tune your tcp/ip stack).



Copyright © 2007-2009 TrustLeap, All Rights Reserved