def METHOD_NAME(url):
  from six.moves import urllib
  parsed = urllib.parse.urlparse(url)
  assert parsed.scheme in ["http","https"]
  Response = urllib.request.urlopen(url)
  info = Response.info()
  #print info
  P = PilatusSlice()
  if "Image-slice" in info.keys():
    sliceindex = int(info["Image-slice"])
    assert 0 <= sliceindex <= 11 # slow slice section, possible index range
    P.sliceindex = sliceindex
  P.bin = int(info["Image-bin"])
  P.filename = info["Image-filename"]
  P.vendortype = "Pilatus-6M"
  P.parameters = {}
  for item in P.mandatory_keys:
      header_key = "Image-%s"%item.lower()
      P.parameters[item]=P.data_types[item](info[header_key])
  if info["Image-data_encryption"]=="pickle":
    P.slice_callback = P.slice_callback_with_portable_http_data
  elif info["Image-data_encryption"]=="byte":
    P.slice_callback = P.slice_callback_with_high_performance_http_data
  P.object = Response #hand over the data stream to the callback function
  return P