username:password
So I can post this to a server online, I tried a couple of different methods of doing this but failed on each occasion, no error presented,
Code: Select all
on mouseUp
put fld "user_name" into myAuth
put ":" after myAuth
put fld "password" after myAuth
put myAuth into fld "testing"
auth_encode
end mouseUp
on auth_encode
return base64encode (myAuth)
put it into fld "encode_test"
end auth_encode
I have tried, several variations of the base64Encode function but I am sure I am missing something important somewhere.