def postObject(host, token, channel, filename):
  
  url = 'http://{}/ocpca/{}/{}/query/status/0/type/2/'.format(host, token, channel)
  # Opening the url and verifying if it connects or else exit the program
  try:
    req = urllib2.Request(url, open(filename).read())
    response = urllib2.urlopen(req)
    print url 
  except urllib2.URLError, e:
    print "Failed URL {}, Error {}".format(url, e)
This function is called by client transaction functions when they want
dataset/ETHPy150Open neurodata/ndstore/util/testRest.py/postObject--crossover with--dataset/ETHPy150Open JoelBender/bacpypes/py25/bacpypes/appservice.py/ClientSSM.response