php - How could I change the port of target host?
问题描述
I need send a request using soapclient but I'm not able to change the port of target, if i try to send it addreses like "192.168.1.1:60000" I got the error "Error Fetching http headers".
my code:
$this->client = new SoapClient($wsdlPath, array(
'trace' => 1,
'exceptions' => true,
'ssl' => array(
'verify_peer' => false,
'allow_self_signed' => true
),
'soap_version' => SOAP_1_2
));
$this->client->__setLocation($deviceAddr);
$this->client->__setSoapHeaders($this->soapClientWSSecurityHeader($user,$pass));
解决方案
推荐阅读
- python - Python 谷歌表格 API
- javascript - TypeError:无法读取未定义的属性“地图”。反应js
- sql - 绑定消息提供 3 个参数,但准备好的语句“”需要 0 [Node js, pg]
- reactjs - React 已被 CORS 策略阻止:没有“Access-Control-Allow-Origin”标头
- python - 使用 PolynominalFeatures 拟合线性模型
- http - Kotlin/Ktor:请求网页时“预期关闭块”
- python - 聚合 Pandas 数据框中的列数据
- geolocation - 将可选参数传递给 Strapi 查询而不创建模型定义?
- java - 如果“迭代器”是一个接口,如何创建“迭代器”的对象?
- excel - Excel:根据下拉框将两个嵌套的 IF 语句嵌套在一个 IF 语句中