question about WWWForm.

When I call

headers["Authorization"]="Basic " + System.Convert.ToBase64String(System.Text.Encoding.ASCII.GetBytes("myid:mypassword"));
post = new WWW(fURL, form.data,headers);

I got error like this.
ActionController::InvalidAuthenticityToken

in AccountsController#auth_user

does anybody have success setting Authorization header?

Thats potentially not a valid authorization token or the letters you use conflict with what you are allowed to have there

See 14.8 at HTTP/1.1: Header Field Definitions