I m writing a Flex application that uses HTTPService to communicate with a php script, in order to do a query on a database. Everything works fine if i use a GET request, but it doesn t work with POST. For some odd reason, the php script is actually receiving a GET request instead of POST. Also, it seems not to carry the parameters that i sent from the flex app.
这里是《灵活守则》的一部分:
<mx:HTTPService id="userRequest" url="url"
useProxy="false" method="POST" result="checkTransmissionCode()">
<s:request xmlns="">
<transmissionCode>{transmissionCode_TextInput.text}</transmissionCode>
</s:request>
</mx:HTTPService>
private function sendCode() :void{
userRequest.send();
}
private function checkTransmissionCode() :void {
if(userRequest.lastResult.authorization=="correct"){
this.currentState= transmission ;
}
else{
Alert.show("Invalid");
}
userRequest.clearResult();
}
I ve already found some other threads of people with a similar problem, but none of them helped me with this... Does anyone knows why this is happening, or have any idea on how to solve this?