コード例 #1
0
def get_header_value(headers, name):
  ch = Curlheaders(headers)
  count = ch.response_count()
  return ch.http_header(count-1, name)
コード例 #2
0
def get_response_code(headers):
  ch = Curlheaders(headers)
  count = ch.response_count()
  return ch.http_code(count-1)