176
176
code = curl.getinfo(pycurl.HTTP_CODE)
178
178
headers = _extract_headers(header.getvalue(), abspath)
179
179
# handle_response will raise NoSuchFile, etc based on the response code
180
180
return code, response.handle_response(abspath, code, headers, data)