尝试通过企业代理连接时在API管理器wso2中获取响应代码0 [英] Getting Response code 0 in API manager wso2 while Trying to connect Through enterprise Proxy
本文介绍了尝试通过企业代理连接时在API管理器wso2中获取响应代码0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
好吧,
我从具有企业代理的本地主机中收到一个简单的PhoneVerify请求.
i m hitting a simple PhoneVerify Request from my localhost which have enterprise proxy .
我使用下面的链接配置了我的代理服务器设置.
i have configured my Proxy setting using below link.
但是我得到相同的响应代码0和空白的响应正文.
But I m Getting The Same Response code 0 and Blank Response Body.
这是curl和Request URL:
Here Is a the curl and Request URL :
卷曲
curl -X GET --header "Accept: application/json" --header "Authorization: Bearer b9d93ac569bec1721716e1422b852b" "https://192.168.78.153:8244/phone/1.0.0/CheckPhoneNumber?PhoneNumber=8888888888&LicenseKey=0"
请求网址
https://192.168.78.153:8244/phone/1.0.0/CheckPhoneNumber?PhoneNumber=8888888888&LicenseKey=0
响应正文
没有内容
响应码
0
响应标题
{
"error": "no response from server"
}
[基本网址:/phone/1.0.0,api版本:1.0.0]
[ base url: /phone/1.0.0 , api version: 1.0.0 ]
推荐答案
由于您位于具有通过http.proxyPort
设置的端口的代理后面,因此必须使用端口1234而不是8244.
Since you are behind a proxy with port set through http.proxyPort
, You have to use port 1234 instead of 8244.
这篇关于尝试通过企业代理连接时在API管理器wso2中获取响应代码0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文