DONGBUM on blog

플래시에서 http-auth 방식 인증처리방법

by on Oct.22, 2009, under Flash & ActionScript

플래시에서 http-auth 방식 인증처리방법

// http BASIC 인증 코드
http://www.abdulqabiz.com/blog/archives/flash_and_actionscript/http_authentica.php

1
2
3
4
5
6
7
8
9
10
11
12
var request:URLRequest = new URLRequest();
 
//call listsubs method of Bloglines
request.url = "";
 
var credentials:String = Base64.encode(email + ":" + password);
//create HTTP Auth request header
var authHeader:URLRequestHeader = new URLRequestHeader("Authorization","Basic " + credentials);
//add the header to request
request.requestHeaders.push(authHeader);
//make the request.
loader.load(request);
:, , ,

Leave a Reply

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Blogroll

A few highly recommended websites...