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

curl-and-php

RE: ISA Server

From: Lucas van Oostrum <lucas_at_royalblue.info>
Date: Wed, 17 Aug 2005 09:47:27 +0200

Hi,

 

I had the same problem. Finally I installed a tunnelling proxy called
APS098. This proxy uses the correct NTLM encryption to go through the ISA
server. You can find it on http://apserver.sourceforge.net/ . For PHP Curl
settings use localhost:port (port of APS098 see configfile) and put your
ISAserverip and username:password in the APS098 configfile. Username and
password should be your NT domain username and password.

 

I hope this helps, it did for me.

 

Lucas van Oostrum.

 

  _____

Van: curl-and-php-bounces_at_cool.haxx.se
[mailto:curl-and-php-bounces_at_cool.haxx.se] Namens Raluca Oprean
Verzonden: woensdag 17 augustus 2005 9:23
Aan: curl-and-php_at_cool.haxx.se
Onderwerp: ISA Server

 

HI!

 

I've managed to enable curl on localhost on a Apache server. The trouble is
now that my computer is part of a domain and to get to the internet I have
to pass through an ISA Server authentification ... how do I do that?

I've tried this code:

 

<?php
$ch = curl_init ();
curl_setopt ($ch, CURLOPT_URL, "http://www.sds.ro/");
curl_setopt ($ch, CURLOPT_TIMEOUT, 60);
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, TRUE);
curl_setopt ($ch, CURLOPT_PROXY, "server:8080");
curl_setopt ($ch, CURLOPT_PROXYUSERPWD, "usr:pass");
$result = curl_exec($ch);
echo "Error number: ".curl_errno($ch)."\n";
echo "Error message: ".curl_error($ch)."\n";
echo "Result: ".strlen($result)." bytes\n";
echo $result;
print_r(curl_getinfo($ch));
?>

 

The error I receive is this:

 

HTTP 407 Proxy Authentication Required - The ISA Server requires
authorization to fulfill the request. Access to the Web Proxy service is
denied. (12209)
Internet Security and Acceleration Server

 

Raluca Oprean

programmer

Segas Data System

0727359532

 
Received on 2005-08-17