我有一个最奇怪的问题:
如果我尝试用 curl 发布一个 cookie,我会得到一个 http_code 500,当我把 cookie 放在外面时,它可以正常工作吗?!
我添加了这样的cookie:
curl_setopt($curl, CURLOPT_COOKIE, 'someCookie=' . $_COOKIE['someCookie'] . '; path=/');
有任何想法吗?只是提示,反弹想法..任何东西
卷曲信息:
Array (
[url] => valid url
[content_type] => text/html; charset=utf-8
[http_code] => 500
[header_size] => 279
[request_size] => 270
[filetime] => -1
[ssl_verify_result] => 0
[redirect_count] => 0
[total_time] => 0.345595
[namelookup_time] => 2.3E-5
[connect_time] => 0.000122
[pretransfer_time] => 0.000126
[size_upload] => 1026
[size_download] => 52106
[speed_download] => 150771
[speed_upload] => 2968
[download_content_length] => -1
[upload_content_length] => 1026
[starttransfer_time] => 0.000814
[redirect_time] => 0
[certinfo] => Array ( )
[redirect_url] =>
)
注意:没有错误发生,我在访问日志中看到了所有内容(尽管 http_code 500)
我可以从命令行成功执行命令,那么对于可能阻止 php 执行它的原因有什么想法吗?