Skip to main content
August 23, 2014
Question

open URL in a browser with POST request from FlashPlayer?

  • August 23, 2014
  • 1 reply
  • 555 views

I have a SWF file that plays locally in Standalone Flash Player 11.2 under Win 8.1.

I'm using the standard navigateToUrl() function to open a URL in a browser, so it's not published for AIR, I make sure that request data is not empty - it contains my URLvars, the function is user initiated on click, and the request method is POST.

Still the browser sends a GET request.

Am I missing something? Is it possible to fix, so it sends POST?

Thanks!

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
August 23, 2014

show your (relevant) code.

August 23, 2014

Can not post my code properly because it then requires moderation, so plain text:

var req:URLRequest = new URLRequest(....);

var vars:URLVariables = new URLVariables();

vars.xxxx = hub.extras[3];

vars.yyyy = hub.extras[4];

req.data = vars;

req.method = URLRequestMethod.POST;

navigateToURL(req, "_blank");

kglad
Community Expert
Community Expert
August 23, 2014

that looks ok.

check your browser's flash player, Flash Player Help

and/or try a different browser.