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