maybe use HTTPService but pass id as a parameter and use POST rather than GET, eg
params = new Object();
params["id"] = 1234
service = new HTTPService();
service.method = "POST";
... (attach listeners and whatever else)
The POST variables are harder to decipher, plus you can send considerably larger quantities of information this way. IE is especially strict with its GET limit. It basically mimics form submission in HTML.
In the ASP page you read the variables exactly the same way regardless of URL or Form passing, ie Page.Request["id"]; will pick it up either way.
var encode:Base64Encoder = new Base64Encoder();
fileName = encode.toString();
fileName u can attach like URL?fileName
& on server-side use Base64Decoder to decode this string.
Thanks for the reply.
Is Base64Encoder already built into flex or is there a swc i need to use?
I will give this a try and report back.
This seems to work and i get a base64 encoded string but is there away to somehow use a key? As whats to stop someone from using a base 64 decoder and read the variable?
Many Thanks again,
Not much sure about key need to search ..
Does anyone know of a way to acheive this using somekind of key? Or a better solution to what i'm currently doing? Base64 encoding would be ok for casual browsers but anyone one with a little knowledge would be able to read the variable very easily.
Thanks for any help!
Thanks for this Prashant,
I'm going to try and encrypt the urlvariable in Flex using our Public SSL Certificate and Decrypt the urlvariable in ASP using our private key. No idea if this is possible but i've seen bits and pieces suggesting that it may be.