cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

Re: Do I need a new version of php_curl.dll?

From: Lucas <lucas_at_royalblue.info>
Date: Thu, 29 Apr 2004 14:04:05 +0200

Citeren Daniel Stenberg <daniel-curl_at_haxx.se>:

> On Thu, 29 Apr 2004, Lucas wrote:
>
> > PHP Notice: Use of undefined constant CURLOPT_PROXYAUTH - assumed
> > 'CURLOPT_PROXYAUTH' in C:\\phpWeb\\t3.php on line 15
> > PHP Notice: Use of undefined constant CURLAUTH_NTLM - assumed
> 'CURLAUTH_NTLM'
> > in C:\\phpWeb\\t3.php on line 15
> >
> > As I searched on the web, i found that maybe the php_curl.dll file is of a
> > later version than the last version of curl. Also curl_easy_setopt()
> > functions are not included.
> >
> > Do I have to compile a new dll ?
>
> Perhaps.
>
> > Or can I solve this an other way ?
>
> Download a precompiled binary?
>
> > I allready tried the numeric version of CURLOPT_PROXYAUTH
>
> I think you need to have a php/curl module and a libcurl that are both new
> enough to know about NTLM for proxies.
>
> I believe this option works since libcurl 7.10.7. I don't know about what
> PHP
> version.
>
> --
> Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se
> Dedicated custom curl help for hire: http://haxx.se/curl.html
>

First, Thanx for your help and quick reaction.

I use PHP 4.3.7, tried it also with PHP 5RC2. But both contain the same
php_curl.dll.

commandline curl (Windows) like the works perfectly :

curl -x proxyserver:8080 --url http://www.microsoft.com -S --proxy-ntlm -U
username:password

but I can't get the --proxy-ntlm to work in the PHP enviroment. What must I
download to compile a new dll ? Or is there somebody who built one? So curl
works fine, but the php interface doesn't.

Thanx

Lucas
Received on 2004-04-29