doc4255
February 17, 2014, 2:06am
1
can something like this be done in AS3… curl -v -H “Authorization: bearer XXXXX-XXX-XXX-XXX-XXXX” https://erikberg.com/me.json
I have bee looking for days and cant seem to gain access. I already have the token but i cant seem to create the authorization header…
thanks in advance guys
Mike
jjak
November 19, 2014, 9:34pm
2
Hey Mike, can you show me how you got it working. The code including the header with auth. You can put xxxx’s in place of you auth.
Thanks
Adam
krilnon
November 19, 2014, 9:44pm
3
@jjak , are you attempting this with Flash Player or AIR? Because you can’t set the Authorization
header in Flash Player. But the way to do it would be to use a URLRequestHeader along with a URLRequest.
jjak
November 19, 2014, 9:49pm
4
Yes, trying with Air. I worked on this in the past and couldn’t get it to work. I will need to go back to my file to show how I had it written.
krilnon
November 19, 2014, 10:56pm
5
It also depends on which AIR sandbox you’re in, I think. It’s still restricted in some.
I’m on a phone now so I can’t easily write or test code.