title: PHP - How to use Curl with Kerberos
body: <p>I'm trying to do some operation with curl, but the website where I have to work uses Kerberos authentication. Consequently I have to enable the SPNEGO function of curl which is disabled by default.</p>
  
  <p>This is the extract from my phpinfo:</p>
  
  <pre><code>cURL support    enabled
  cURL Information    7.19.7
  Age 3
  Features
  AsynchDNS   No
  Debug   No
  GSS-Negotiate   Yes
  IDN Yes
  IPv6    Yes
  Largefile   Yes
  NTLM    Yes
  SPNEGO  No
  SSL Yes
  SSPI    No
  krb4    No
  libz    Yes
  CharConv    No
  Protocols   tftp, ftp, telnet, dict, ldap, ldaps, http, file, https, ftps, scp, sftp
  Host    x86_64-redhat-linux-gnu
  SSL Version NSS/3.13.1.0
  ZLib Version    1.2.3
  libSSH Version  libssh2/1.2.2
  </code></pre>
  
  <p>How can I do this?</p>