tools/python/google/gethash_timer.py
def IssueGetHash(prefix):
  '''Issue one GetHash request to the safebrowsing servers.
  Args:
    prefix: A 4 byte value to look up on the server.
  Returns:
    The HTTP response code for the GetHash request.
  '''
  body = '4:4\n' + prefix
  h = httplib.HTTPConnection(_GETHASH_HOST)
  h.putrequest('POST', _GETHASH_REQUEST)
  h.putheader('content-length', str(len(body)))
  h.endheaders()
  h.send(body)
  response_code = h.getresponse().status
  h.close()
  return response_code
Issue one GetHash request to the safebrowsing servers.
  Args:
    prefix: A 4 byte value to look up on the server.
  Returns:
    The HTTP response code for the GetHash request.
  
Issue one GetHash request to the safebrowsing servers.
Issue one GetHash request to the safebrowsing servers .
def IssueGetHash(prefix):
  body = '4:4\n' + prefix
  h = httplib.HTTPConnection(_GETHASH_HOST)
  h.putrequest('POST', _GETHASH_REQUEST)
  h.putheader('content-length', str(len(body)))
  h.endheaders()
  h.send(body)
  response_code = h.getresponse().status
  h.close()
  return response_code
def IssueGetHash ( prefix ) : body = '4:4\n' + prefix h = httplib . HTTPConnection ( _GETHASH_HOST ) h . putrequest ( 'POST' , _GETHASH_REQUEST ) h . putheader ( 'content-length' , str ( len ( body ) ) ) h . endheaders ( ) h . send ( body ) response_code = h . getresponse ( ) . status h . close ( ) return response_code
Issue one GetHash request to the safebrowsing servers.
Issue one GetHash request to the safebrowsing servers .
'''Issue one GetHash request to the safebrowsing servers.
  Args:
    prefix: A 4 byte value to look up on the server.
  Returns:
    The HTTP response code for the GetHash request.
  '''
The HTTP response code for the GetHash request.
The HTTP response code for the GetHash request .
prefix
A 4 byte value to look up on the server.
A 4 byte value to look up on the server .