ios - STHTTPRequest how i can implement https? -
i have app communicate dedicated server, want implement https communication... i'm using sthttprequest wrapper requests, example request:
__block sthttprequest *up = [sthttprequest requestwithurlstring:@"http://www.server.com/page.php"]; up.postdictionary = @{@"pass":@"xxxx","user":@"username"}; up.completionblock = ^(nsdictionary *headers, nsstring *body) { }; up.errorblock = ^(nserror *error) { }; [up startasynchronous]; for server i'll buy ssl certificate, how can implement https client ios app? i'm trying create best solution secure data, not use self-signed certificate... have read vulnerability "man in middle" attack.
Comments
Post a Comment