问题描述
好,
我从我的Localhost中点击了一个具有企业代理的简单电话佛像请求.
我使用以下链接配置了我的代理设置.
无法访问生产端点与WSO2 API Manager -Entreprise代理
,但是我得到了相同的响应代码0和空白的响应主体.
这是卷曲和请求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"
请求URL
https://192.168.78.153:8244/phone/1.0.0/CheckPhoneNumber?PhoneNumber=8888888888&LicenseKey=0
响应主体
没有内容
响应代码
0
响应标头
{ "error": "no response from server" }
[base url:/phone/phone/1.0.0,API版本:1.0.0]
推荐答案
由于您是通过http.proxyPort设置端口的代理后面的,因此您必须使用端口1234而不是8244.
问题描述
Well ,
i m hitting a simple PhoneVerify Request from my localhost which have enterprise proxy .
i have configured my Proxy setting using below link.
Can't access to production endpoint with WSO2 API Manager - entreprise proxy
But I m Getting The Same Response code 0 and Blank Response Body.
Here Is a the curl and Request URL :
Curl
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"
Request URL
https://192.168.78.153:8244/phone/1.0.0/CheckPhoneNumber?PhoneNumber=8888888888&LicenseKey=0
Response Body
no content
Response Code
0
Response Headers
{ "error": "no response from server" }
[ base url: /phone/1.0.0 , api version: 1.0.0 ]
推荐答案
Since you are behind a proxy with port set through http.proxyPort, You have to use port 1234 instead of 8244.