You could also try checking the SSL log. This may give hints about the problem; none of the HTTP conversation happens until after SSL has been negotiated. Jerry Wilborn jerrywilborn@xxxxxxxxx On Fri, Aug 7, 2009 at 1:16 PM, Tom Worster <fsb@xxxxxxxxxx> wrote: > On 8/6/09 2:33 PM, "Ted Yu" <ted_yu@xxxxxxxxx> wrote: > > > > > Hi, > > I use the following code to call third party web service: > > curl_setopt($ch, CURLOPT_URL, $url); > > curl_setopt($ch, CURLOPT_TIMEOUT, 120); > > curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 1); > > curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 1); > > curl_setopt($ch, CURLOPT_SSLVERSION, 3); > > curl_setopt($ch, CURLOPT_SSLCERT, $loc); > > curl_setopt($ch, CURLOPT_SSLCERTPASSWD, $password); > > curl_setopt($ch, CURLOPT_HTTPHEADER, $this->_httpHeaders); > > curl_setopt($ch, CURLOPT_POST, 1); > > curl_setopt($ch, CURLOPT_POSTFIELDS, $this->_xmlData); > > $ret = curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); > > > > $xmlResponseData = curl_exec($ch); > > > > But for a specific API, curl_exec() returns true but there was no hit on > their > > server (as verified by contact in that company from server log) > > > > Can someone provide hint ? > > not me. > > but, if you haven't already, maybe try debugging by: print out the values > of > all the variables in the above code and with them (or some subset) try > making the same (or similar, or simpler) requests to the same $url using > curl the command line with verbosity or tracing turned on. > > curl might give the hint you need. > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >