def get_http_response(self, server_host_port, path):
for _ in range(<NUM_LIT:0>, RETRY_ATTEMPTS):<EOL><INDENT>try:<EOL><INDENT>connection = HTTPConnection(server_host_port)<EOL>connection.request('<STR_LIT:GET>', path)<EOL>response = connection.getresponse()<EOL>return response<EOL><DEDENT>except Exception:<EOL><INDENT>time.sleep(RETRY_INTERVAL)<EOL>continue<EOL><DEDENT><DEDENT>raise status.TestFailure("<STR_LIT>" % RETRY_ATTEMPTS)<EOL>
get HTTP response