Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTTPS connection hanging indefinitely #248

Closed
hunterkreie opened this issue Mar 12, 2015 · 2 comments
Closed

HTTPS connection hanging indefinitely #248

hunterkreie opened this issue Mar 12, 2015 · 2 comments

Comments

@hunterkreie
Copy link

Hi all,

Thought I would share this for what it's worth. I was running into an issue with my Exchange server where HTTPS connections would just hang indefinitely. I suspected a possible issue with authentication, and started messing with some settings. Removing CURLAUTH_BASIC fixed my problem, but I don't know the underlying cause, if it is a PHP bug or something with my Exchange server config. Just thought I would share in case others encounter the same issue.

NTLMSoapClient.php - line 78

  • curl_setopt($this->ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC | CURLAUTH_NTLM);
  • curl_setopt($this->ch, CURLOPT_HTTPAUTH, CURLAUTH_NTLM);
@anvio
Copy link

anvio commented Mar 3, 2016

We had a similar issue after upgrading libcurl from version 7.37.1 to 7.47.0. There were a lot of changes to NTLM in cURL between these versions (https://curl.haxx.se/changes.html). One of them may has caused this issue. However, we were able to solve the problem by adding:

NTLMSoapClient.php - line 80

  • curl_setopt($this->ch, CURLOPT_FORBID_REUSE, true);

@jamesiarmes
Copy link
Owner

Some Exchange servers seem to have issue with CURLAUTH_BASIC | CURLAUTH_NTLM. With the latest version of the client, you can set your own cURL options using something like the following:

$client->setCurlOptions(array(
    CURLOPT_HTTPAUTH => CURLAUTH_NTLM,
));

This can be used to override most options, or set your own.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants