optimize the http recognization