add connect() for HTTP compression