在Apache默认error_logs中卷曲请求标头

时间:2014-04-03 17:24:02

标签: php curl

apache error_log

中的Web服务器上的一些不受控制的日志记录
< Connection: Keep-Alive
< Keep-Alive: max=10
< Expires: Thu, 01 Jan 1970 00:00:00 GMT
< Set-Cookie: BIGipServerabcd_prod_serv=4116270402.20480.0000; expires=Thu, 03-Apr-2014 00:19:32 GMT; path=/
* Connection #0 to host services.abcd.com left intact
* Closing connection #0
* About to connect() to services.abcd.com port 80
*   Trying 99.97.124.97... * connected
* Connected to services.abcd.com (99.97.124.97) port 80 here

1 个答案:

答案 0 :(得分:1)

这些是curl的详细输出。为此行生成:

curl_setopt($ch, CURLOPT_VERBOSE, 1);

因此,请从代码中找到此行并将其设为0false(仅当您不希望看到打印件时)。或者只是删除它。