0
我創建一個擴展HttpService的一類名爲xxHttpService,我重寫構造方法中,我爲了設置自定義標題發送到本地服務器做things.Strangely,我不能讓從價值頭,它總是A,因爲我從服務器端將它設置爲B.有什麼見解?提前致謝 。如果您使用的MXML版本,這是在關於Flex HTTPService組件問題
HTTPService(rootURL:String = null, destination:String = null)
:
public class xxxHttpService extends HTTPService
{
public function xxxHttpService(handler:Function){
****
this.headers = {HTTP_USER: "Wking"};
****
}
}
如果我明白了,你設置自定義標題爲一個值在HTTPService類;但服務器總是在同一個頭中看到不同的值? – JeffryHouser
你打在你的基類的構造函數? (super() - 我認爲..) – ethrbunny