php - SoapClient result "failed to open stream: HTTP request failed" -


i'm trying open socket between server , other server, returns following warring msg :

soapclient::soapclient() [soapclient.soapclient]: failed open stream: http request failed

my soapclient should connected using specific ip, i'm using following code:

$aopts = array('socket' => array('bindto' => 'my ip')); $rstreamcontext = stream_context_create($aopts);

$client = new soapclient($this->_wsdl_test_url, array('stream_context'=>$rstreamcontext));

the server keep giving me same warning, failed open stream: http

finally fixed, problem encryption of file, put utf8 without bom instead of utf8


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -