In our Flex we based app we use .Net as middle layer (Fluorine Fx web services) and SQL as back end. We were opening a url from flex in which we pass all parameters in the url string itself which works fine. To improve the security perspective we decided to send the url parameters in POST headers. When we use POST the .Net developer compalins that they are not getting any params in header.
Can someone please point out the problem in following piece of code? Please note that none of the parameters are empty.
var url:String = http://abcd:9090/someurl.aspx;
var urlReq:URLRequest = new URLRequest(url);
var variables:URLVariables = new URLVariables();
var rhArray:Array = new Array(new URLRequestHeader("Content-Type", "text/html"));
variables.Uname = mgrName;
variables.ID = ID;
variables.UID = userID;
variables.LID = languageID;
urlReq.data = variables;
urlReq.requestHeaders = rhArray;
urlReq.method = URLRequestMethod.POST;
Hi ... Pls try this code...
var header:URLRequestHeader = new URLRequestHeader ("Content-type", "application/octet-stream"); or "Content-Type", "text/html"