first half of http_server1