Re: replace code curl to libcurl
aksshay sharma <[email protected]> Mon, 18 Feb 2013 18:05:09 +0530
| Newsgroups | gmane.comp.web.curl.php |
|---|---|
| Message-ID | <CAMLS866PA-VPqvXuT64LHHziSmgnsJXznGsiV09Sms+rWFHOSg@mail.gmail.com> |
Hi Левченко Кирилл Сергеевич, Hope it helps, In PHP you have to give like this : curl_setopt($ch, CURLOPT_USERPWD, 'user:pass'); curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_DIGEST); $ch is your curl handle. On Mon, Feb 18, 2013 at 12:54 PM, Левченко Кирилл Сергеевич < [email protected]> wrote: > How to replace this command **** > > «curl --user abc:password --digest \ > http://172.1.1.1/KbrInterface/system/Main.aspx?Method=List »**** > > code on perl or php with libcurl?**** > > ** ** > > _______________________________________________ > http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php > > -- -- Thanks & Regards, Aksshay Sharma *SMILE. Its the key that fits the locks on everyone's ♥* _______________________________________________ http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php