Added -h and -H options support for direct HTTP GET/POST requests.
HTTP headers now get freed when they're no longer needed.
Changed scope for better performance.