I am trying to figure out how to use Flash's sendAndLoad feature with a webpage that resides in a password protected directory.
Currently when I try to access the page directly from a browser, the browser prompts me with a username and password.
When I try to do a sendAndLoad from Flash to this same page, flash opens the same type of dialog box and i can type my password in and everything works, life goes on.
My question is how can i prefill the password so flash does not prompt me for one. In this case the username and password will always be 'admin'.
I've tried a few things such as formatting the URL like this:
but flash says it's not a valid URL.
I basically want to add my own headers to the HTTP call but I snooped some of the headers Firefox was sending and it does not send them in plaintext.
The only header that is added after i type the password is:
Authorization: Basic YWRtaW46YWRtaW4=
^Does that somehow relate to admin/admin?
I also looked up the LoadVars2 class which supports some form of user/pass but i could not get it working.
Is there another way to do this?
Maximum points to whoever can come up with a solution for me as soon as possible. Thanks!!