I m using libcurl as a http client in my application. I can send and receive http messages with libcurl.
I want to extract the location field from the received http message when I got a message with http 302 as indicated above.
HTTP/1.1 302 Found
Location: http://192.168.201.1
Content-Length: 0
How I can extract the location field when I got http 302 message?