dtnwm4807 2016-11-22 19:06
浏览 94

使用未定义的常量CURLOPT_PROXYHEADER

According to the php manual I should be able to use the CURLOPT_PROXYHEADER constant:

CURLOPT_PROXYHEADER (integer)

Available since PHP 7.0.7 and cURL7.37.0

But I get this error:

Notice: Use of undefined constant CURLOPT_PROXYHEADER - assumed 'CURLOPT_PROXYHEADER'

My php version is:

php -v

PHP 7.1.0RC6 (cli) ( NTS )

I have php7.1-curl insalled.

My curl version is:

curl --version

curl 7.51.0 (x86_64-pc-linux-gnu) libcurl/7.51.0 OpenSSL/1.0.1f zlib/1.2.8

Why can't I use the constant?

Edit: Added curl part of phpinfo:

curl

cURL support => enabled
cURL Information => 7.51.0
Age => 3
Features
AsynchDNS => No
CharConv => No
Debug => No
GSS-Negotiate => No
IDN => No
IPv6 => Yes
krb4 => No
Largefile => Yes
libz => Yes
NTLM => Yes
NTLMWB => Yes
SPNEGO => No
SSL => Yes
SSPI => No
TLS-SRP => Yes
HTTP2 => No
Protocols => dict, file, ftp, ftps, gopher, http, https, imap, imaps, pop3, pop3s, rtsp, smb, smbs, smtp, smtps, telnet, tftp
Host => x86_64-pc-linux-gnu
SSL Version => OpenSSL/1.0.1f
ZLib Version => 1.2.8
  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 制裁名单20240508芯片厂商
    • ¥20 易康econgnition精度验证
    • ¥15 线程问题判断多次进入
    • ¥15 msix packaging tool打包问题
    • ¥28 微信小程序开发页面布局没问题,真机调试的时候页面布局就乱了
    • ¥15 python的qt5界面
    • ¥15 无线电能传输系统MATLAB仿真问题
    • ¥50 如何用脚本实现输入法的热键设置
    • ¥20 我想使用一些网络协议或者部分协议也行,主要想实现类似于traceroute的一定步长内的路由拓扑功能
    • ¥30 深度学习,前后端连接