I m calling web services in php using curl. But at serverside location is changed of my site in IIS7 and make it secure.
So now I’m facing the problem when calling the webservice. Following Error occurrs:
HTTP Error 401.2 – Unauthorized
You are not authorized to view this page due to invalid authentication headers.
I don’t know how to pass user credentials. Please tell what is the problem and how it will be handled.
Add these options. Hope it help =)
[Reference] :
CURLOPT_HTTPAUTH