ios - How to post the username and password securly from device to url -
In my application Hi, I have login option with username and password. I url and password through my url in my php script Passing and urinating from the url and navigating to the next scene.
I want to know that my code by sending the data safely to my URL in the device.
NSString * url = [NSString stringWithFormat: @myril? Username =% @ and password =% @ ", usern.text, pass.text]; NSData * dataURL = [NSData dataWithContentsOfURL: [NSURL URLWithString: url]]; NSLog (@" response% @ ", strResult); < / Code> In my above code I am sending the data directly to my URL, please pass it safely with the post method.
This is a small tutorial for telling you how to use the POST method
Comments
Post a Comment