Added curl_opts to exception info, removed incorrect stripslashes() and accounting for repeated headers like the Link header.