Hi All,

I have a question about PUT method in flashlite by XML object

var send_xml:XML = new XML();
var str:String = "admin:admin";
var auth:String = fscommand2("Escape", str, "encoded_string");

send_xml.addRequestHeader("Authorization", "Basic " + auth);

var userReview:XMLNode = send_xml.createElement("userReview");
var rating:XMLNode = send_xml.createElement("rating");
var rating_value:XMLNode = send_xml.createTextNode("5");
var comments:XMLNode = send_xml.createElement("comments");
var comments_value:XMLNode = send_xml.createTextNode("bad");

send_xml.appendChild(userReview);
userReview.appendChild(rating);
rating.appendChild(rating_value);
userReview.appendChild(comments);
comments.appendChild(comments_value);

send_xml.contentType = "application/xml";

var result_xml:XML = new XML();
result_xml.onLoad = function(success){

}


send_xml.sendAndLoad(linkToServer, result_xml, "PUT");

Can I use PUT method link this?


I have another question about authenticate
When I use like below:
var str:String = "admin:admin";
var auth:String = fscommand2("Escape", str, "encoded_string");

send_xml.addRequestHeader("Authorization", "Basic " + auth);

on device, it show a popup which have to enter username and password. Why to show this popup although I had username and password. It is admin/admin.

Could you please help me?

Thanks.