Skip to main content
Participant
October 9, 2013
Question

GET fails, POST succeeds

  • October 9, 2013
  • 1 reply
  • 1760 views

I have a .swf made from an AIR project that makes https request to a REST api (i.e. Parse.com)

There is no problem running this .swf with AIR.

If I were to run this .swf in regular Flash player 11, I encounter:

GET request I receive error 401 (unauthorized)

POST request there is no problem.

Is this expected?

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
October 9, 2013

not because of anything on the flash side.  if you had a flash problem it would be a security sandbox error and would occur with post and get.

check that rest api to see if it allows get requests.

bo_huangAuthor
Participant
October 9, 2013

I should clarify that GET is allowed, because if I run the exact same .swf with the ADL instead of Flash player 11, both GET and POST requests succeed.

In addition to Parse.com, I also tried Stackmob.com's REST api. Similar results:

http://support.stackmob.com/entries/27724236-Invalid-OAuth-credentials-or-signature-Key-not-provided

But works fine if launched in ADL.

I'm here because these REST api companies do not support as3 and can't help.

kglad
Community Expert
Community Expert
October 10, 2013

copy and paste a simplified get actionscript request that fails and a javascript request that suceeds.