Modified parse http servlet request function