i am trying to create an application on android phone that takes username and password from user, encrypt the password using md5 then connect to url with these parameters.
a code to connect worked fine on iphone, but i couldn't find something like it in android:
NSMutableURLRequest* request = [NSMutableURLRequest requestWithURL:myURL];
[request setHTTPMethod:@"GET"];
[request addValue:usernameField.text forHTTPHeaderField:@"UserName"];
[request addValue:MD5Pass2 forHTTPHeaderField:@"Password"];
i tried to connect via httpurlconnection used post/get Dataoutputstream, httpclient send parameters httpget/httppost, but no success.
I think I need to send the parameters as headerfield but I don't know how.
note: I compared encryption results and it was correct.