parse header only when CURLOPT_HEADER is true, added getCurlOption and setCurlOption for call service