I have a simple web service that I would like to connect with. In order to post some XML, which will be properly proceeded on the web service side, I need to prepar
XML
You are setting HTTP_HEADER twice:
curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/xml', 'Connection: Keep-Alive' )); curl_setopt($ch, CURLOPT_HTTPHEADER,array("Expect: "));
I guess that is the problem. The second time you set it, you delete the first setting.