webDemo:update codes to request object