def get_headers_from_response(url, post=None, headers=None, follow_redirects=False):
    response = httptools.downloadpage(url, post=post, headers=headers, only_headers=True,
                                      follow_redirects=follow_redirects)
    return response.headers.items()