Hello All,
Did anyone else see that Flash player "navigateToURL" API
ignores "Content-Type" header for POST HTTP request? E.g. when code
listed below deployed to some server boxes, I can see that "Content-
Type" header is not sent from client side (local sniffer). But for
some boxes it always works well. Client PC was the same.
Code prototype:
var req:URLRequest = new URLRequest("/zzz/page1.jsp");
req.method = "POST";
var d:URLVariables = new URLVariables();
d.contextXML = <zzz/>;
req.data = d;
req.contentType = "application/x-www-form-urlencoded";
req.requestHeaders= [new URLRequestHeader("Content-Type",
"application/x-www-form-urlencoded")];
navigateToURL(req, "_blank");
Played with different variants, assigning contentType,
requestHeaders, before and after "data" property initialization, but
no success. Client Flash Player version: WIN 9.0.47, Debug:no, IE6
SP2, Flex Builder 2.0.1 Hotfix 2.
--
Thanks,
Vadim.