Hi, after reading that Flash Player 9.0.115 had disabled support for
the 'Authorization' HTTP header for security reasons (seems a bizarre
decision) I found your library and was wondering if it's decision to
sidestep URLRequest and URLLoader might result in it making performing
Basic HTTP Authorization possible in Flash again.
I was trying with the following code,
var uri:URI = new URI('
https://api.del.icio.us/v1/tags/get');
var client:HttpClient = new HttpClient();
var request:HttpRequest = new Get();
request.addHeader("Authorization", "Basic a_base_64_encoded_string");
client.request(uri, request);
but unfortunately am receiving an error,
[trace] Connecting: host:
api.del.icio.us, port: 443
[trace] Sending request: GET /v1/tags/get HTTP/1.1
[trace] Host:
api.del.icio.us
[trace] Connection: close
[trace] Authorization: Basic a_base_64_encoded_string
[trace]
[trace] --
[trace] Send request done
[trace] Error: Error #2030: End of file was encountered.
[trace] at flash.utils::ByteArray/readShort()
[trace] at com.hurlant.crypto.tls::TLSEngine/parseHandshakeHello()
[trace] at com.hurlant.crypto.tls::TLSEngine/parseHandshake()
[trace] at com.hurlant.crypto.tls::TLSEngine/parseOneRecord()
[trace] at com.hurlant.crypto.tls::TLSEngine/parseRecord()
[trace] at com.hurlant.crypto.tls::TLSEngine/dataAvailable()
Unsure how to progress from here, nothing I'm trying seems to work!
P.S. Just in case you're unaware, the library as it currently stands
doesn't work in non-AIR projects without a few tweaks as it's
importing and using the AIR-only flash.filesystem classes.