Air fileStream save file to remote server

Hi all!

Is it possible to save lets say an xml to a url like: http://www.something.com/delete.xml
or do I have to use php?
I have tried the fileStream and it works locally like this:


var prefsFile:File = File.desktopDirectory;
prefsFile = prefsFile.resolvePath("delete.xml");
function wrigthToServer()
{
    var fileStream:FileStream = new FileStream();
    fileStream.openAsync(prefsFile, FileMode.WRITE);
    fileStream.writeUTFBytes(xmlData);
    fileStream.addEventListener(Event.CLOSE, fileClosed);
    fileStream.close();
}

function fileClosed(event:Event):void
{
    trace("closed");
}

Have a great day!