How to get HTTP headers from CURL response?