SMF forum login for iPhone -
I have enough Google, but I can not find an example or tutorial, so people can help me A code that will be logged in the SMF Forums?
My guess is that should I use the ASIHTPPX?
__ block ASIFormDataRequest * request; // Login to SMF - This works Request = [with ASIFormDataRequest request: URL: [NSURL URLWithString: @ "https://imtgapp.com/forum/index.php?action=login2"]]; [Request setPostValue: @ "test" for that: @ "user"]; [Request setPostValue: @ "12345" for: @ "passwrd"]; [Request Setpost Value: @ "1" for Key: @ "Kukanai Air XP"]; [Request setPostValue: @ "" for: @ "hash_password"]; //to do ? [Request setValidatesSecureCertificate: no]; [Request setcompletionblock: ^ {// TODO verify that the login succeeds NSLog (@ "% @", [request response string]); }]; [Request setFailedBlock: ^ {NSLog (@ "Unsoltered Error% @,% @", [Request Error], [[Request Error] userInfo]); }]; [Request Asamenus];
Comments
Post a Comment