@deprecated
def get_urllib_object(uri, timeout, headers=None, verify_ssl=True, data=None):
 if (headers is None):
  headers = default_headers
 else:
  tmp = default_headers.copy()
  headers = tmp.update(headers)
 if (data is not None):
  response = requests.post(uri, timeout=timeout, verify=verify_ssl, data=data, headers=headers)
 else:
  response = requests.get(uri, timeout=timeout, verify=verify_ssl, headers=headers)
 return MockHttpResponse(response)

@ deprecated def get_urllib_object ( uri , timeout , headers = None , verify_ssl = True , data = None ) : if ( headers is None ) : headers = default_headers else : tmp = default_headers . copy ( ) headers = tmp . update ( headers ) if ( data is not None ) : response = requests . post ( uri , timeout = timeout , verify = verify_ssl , data = data , headers = headers ) else : response = requests . get ( uri , timeout = timeout , verify = verify_ssl , headers = headers ) return MockHttpResponse ( response )
return an httpresponse object for uri and timeout and headers .