def fetch(self, request):
    log_request(request)
    method = request.get_method()
    headers = request.get_headers()

    if VERBOSE > 0:
      logging.info("URL => %s", request.get_url())
      
    req = urllib2.Request(request.get_url(),
                          data=request.get_post_body(),
                          headers=headers)
    try:
      f = urllib2.urlopen(req)
      result = f.read()
      response = Response(httplib.OK, result)
    except urllib2.URLError, e:
      response = Response(e.code, e.read())

    log_response(response)
    return response
Initialize by reading the task files, if they exist.
dataset/ETHPy150Open CollabQ/CollabQ/vendor/opensocial/http.py/UrlFetch.fetch--crossover with--dataset/ETHPy150Open sjl/t/t.py/TaskDict.__init__