2015-10-07 23 views
0

好連接,獲得響應代碼0的API管理WSO2,而試圖通過企業代理

I M打從我的本地主機具有企業代理一個簡單的PhoneVerify請求。

我已經使用下面的鏈接配置了我的代理服務器設置。

Can't access to production endpoint with WSO2 API Manager - entreprise proxy

但我爲獲得相同的響應代碼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 

響應體

沒有內容

響應代碼

響應頭

{ 
    "error": "no response from server" 
} 

[基本URL:/phone/1.0.0,API版本:1.0.0]

回答

0

由於你是在端口設置爲http.proxyPort的代理之後,您必須使用端口1234而不是8244.

+0

Wh在這種情況下,我需要做出改變嗎? –

+0

在請求URL中。 –