Curl command

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

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

@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.

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.

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.