# Curl command

**URL:** <https://forum.kirupa.com/t/curl-command/332151>\
**Category:** flash\
**Created:** [February 17, 2014, 2:06am UTC](https://forum.kirupa.com/t/curl-command/332151 "2014-02-17T02:06:44Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![doc4255](https://avatars.discourse-cdn.com/v4/letter/d/a587f6/32.png) [@doc4255](https://forum.kirupa.com/u/doc4255)\
**Post date:** [February 17, 2014, 2:06am UTC](https://forum.kirupa.com/t/curl-command/332151/1 "2014-02-17T02:06:44Z")

</div>

can something like this be done in AS3… curl -v -H “Authorization: bearer XXXXX-XXX-XXX-XXX-XXXX” [https://erikberg.com/me.json](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

---

<div class="post-metadata">

**Author:** ![jjak](https://avatars.discourse-cdn.com/v4/letter/j/8797f3/32.png) [@jjak](https://forum.kirupa.com/u/jjak)\
**Post date:** [November 19, 2014, 9:34pm UTC](https://forum.kirupa.com/t/curl-command/332151/2 "2014-11-19T21:34:51Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![krilnon](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/krilnon/32/34_2.png) [@krilnon](https://forum.kirupa.com/u/krilnon)\
**Post date:** [November 19, 2014, 9:44pm UTC](https://forum.kirupa.com/t/curl-command/332151/3 "2014-11-19T21:44:24Z")

</div>

@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](http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/net/URLRequestHeader.html) along with a URLRequest.

---

<div class="post-metadata">

**Author:** ![jjak](https://avatars.discourse-cdn.com/v4/letter/j/8797f3/32.png) [@jjak](https://forum.kirupa.com/u/jjak)\
**Post date:** [November 19, 2014, 9:49pm UTC](https://forum.kirupa.com/t/curl-command/332151/4 "2014-11-19T21:49:03Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![krilnon](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/krilnon/32/34_2.png) [@krilnon](https://forum.kirupa.com/u/krilnon)\
**Post date:** [November 19, 2014, 10:56pm UTC](https://forum.kirupa.com/t/curl-command/332151/5 "2014-11-19T22:56:51Z")

</div>

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.
