Ejemplo n.º 1
0
def get_header_value(headers, name):
  ch = Curlheaders(headers)
  count = ch.response_count()
  return ch.http_header(count-1, name)
Ejemplo n.º 2
0
def get_response_code(headers):
  ch = Curlheaders(headers)
  count = ch.response_count()
  return ch.http_code(count-1)