HTTP Basic Authentication with HTTPService Objects in Adobe Flex/AIR

前端 未结 8 1429
梦谈多话
梦谈多话 2020-12-04 14:52

I\'m trying to request a HTTP resource that requires basic authorization headers from within an Adobe AIR application. I\'ve tried manually adding the headers to the request

8条回答
  •  不思量自难忘°
    2020-12-04 15:17

    Also, just so other people don't spend 10 minutes working out why the correct example doesn't quite work asis, you need to import the mx.utils.Base64Encoder package eg:

            import mx.utils.Base64Encoder;
    

    At the beginning or somewhere within the CDATA area. I'm new to flex so this wasn't quite obvious at first.

提交回复
热议问题