Php cUrl到perl FCGI脚本
我必须用php重新创建现有代码 实现Php cUrl到perl FCGI脚本,php,perl,curl,fastcgi,lwp,Php,Perl,Curl,Fastcgi,Lwp,我必须用php重新创建现有代码 实现FCGI::Request()的perl脚本通过LWP::UserAgent->credentials()连接到 如何使用cUrl(php)而不是LWP(perl)连接到此脚本? 或者,有什么更好/更适合的方法从php连接到这样的服务器 curl_setopt($ch, CURLOPT_USERPWD, urlencode($username) . ':' . urlencode($password)); 其中,$ch是$ch=curl_init()Rest
FCGI::Request()
的perl脚本通过LWP::UserAgent->credentials()连接到
如何使用cUrl(php)而不是LWP(perl)连接到此脚本?
或者,有什么更好/更适合的方法从php连接到这样的服务器
curl_setopt($ch, CURLOPT_USERPWD, urlencode($username) . ':' . urlencode($password));
其中,$ch是$ch=curl_init()代码>Rest是不言自明的
另请参见:和。注意。->credentials()调用USer&pass,加上'realm'。