Flash urlrequest Authority authentication

Source: Internet
Author: User
Tags http authentication

Basic concepts of HTTP permission authentication

Https://en.wikipedia.org/wiki/Basic_access_authentication


Add Authentication Header information

var encoder:base64encoder = new Base64encoder () Encoder.encode (username + ': ' + password); var req:urlrequest = new urlrequ EST (); Req.requestHeaders.push (New Urlrequestheader ("Authorization", "Basic" + encoder.tostring ()));


Using URLRequest in Flash only supports the annoying place of submitting custom header,flash under post, the following link uses a workaround, the socket, but it is difficult to capture an HTTP message in the development environment ( Unable to catch HTTP request message in fiddler)

Http://stackoverflow.com/questions/490806/http-basic-authentication-with-httpservice-objects-in-adobe-flex-air


When HTTP authentication is removed, the Web page pops up the authentication input box (unauthenticated)

Http://stackoverflow.com/questions/404199/how-can-i-avoid-an-authentication-dialog-in-flex-when-using-httpservice-or-urlre


In summary, the network interface of the Flash bottom is indeed a lot of restrictions (security sandbox conflict, only support Post,get, GET can not customize the header)

Flash urlrequest Authority authentication

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.