webmain supporting http headers now; sample changed; real ajax requests in sample