def postURL(url, post_data):

  try:
    # Build a post request
    req = urllib2.Request(url, post_data)
    start = time.time() 
    response = urllib2.urlopen(req)
    print time.time()-start
    return response
  except urllib2.HTTPError, e:
    return e
Post data
dataset/ETHPy150Open neurodata/ndstore/test/benchmark.py/postURL