using POST headers in navigateToURL()


dear friends,

 

in our flex based app use .net middle layer (fluorine fx web services) , sql end. opening url flex in pass parameters in url string works fine. improve security perspective decided send url parameters in post headers. when use post .net developer compalins not getting params in header.

 

can please point out problem in following piece of code? please note none of parameters 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;

navigatetourl(urlreq, "_blank");

 

regards,

shubhra bhushan

hi ... pls try code...

 

var header:urlrequestheader  = new urlrequestheader ("content-type", "application/octet-stream"); or "content-type", "text/html"

urlreq.requestheaders.push(header);



More discussions in Flex (Read Only)


adobe

Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support