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

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -