hi,
i tried to run a sample (login.php) from the vcloud sdk for php sample kit.
when try i get the following message:
root@lamp vcloudPHP-1.5.0/samples# php login.php -s <myserver> -u <admin@org> -p <password> -c='ssl_verify_peer=>false, ssl_verify_host=>false'
PHP Warning: strpos() expects parameter 1 to be string, array given in /tmp/vcloudPHP-1.5.0/library/VMware/VCloud/Service.php on line 97
PHP Fatal error: Uncaught exception 'VMware_VCloud_SDK_Http_Exception' with message 'HTTP_Request2 needs an absolute HTTP(S) request URL, 'Array/api/login' given' in /tmp/vcloudPHP-1.5.0/library/VMware/VCloud/Http/Client.php:157
Stack trace:
#0 /tmp/vcloudPHP-1.5.0/library/VMware/VCloud/Http/Client.php(191): VMware_VCloud_SDK_Http_Client->sendRequest('Array/api/login', 'POST', Array, NULL)
#1 /tmp/vcloudPHP-1.5.0/library/VMware/VCloud/ServiceAbstract.php(136): VMware_VCloud_SDK_Http_Client->post('Array/api/login', Array, NULL)
#2 /tmp/vcloudPHP-1.5.0/library/VMware/VCloud/Service.php(108): VMware_VCloud_SDK_Service_Abstract->post('Array/api/login', 200)
#3 /tmp/vcloudPHP-1.5.0/samples/login.php(73): VMware_VCloud_SDK_Service->login(Array, Array, Array)
#4 {main}
thrown in /tmp/vcloudPHP-1.5.0/library/VMware/VCloud/Http/Client.php on line 157
it's my first try so i think it's really something easy and stupid.
thanks a lot for your help !
chris
ps: php works fine on that machine