Swift POST or GET request for user authentication iOS Swift -
i wondering if there advantages/disadvantages in using post/get method in swift 2 send password , username web server in order authenticate user. working on iphone application fetches data web. request passes parameters url , server sends data back. modeled current application enums defining different endpoints each request , easy me model login same way. however, not sure if right direction.
so get
used retrieve remote data, , post
used add/update remote data.
for security reasons, not make difference. sure connection secured https certificate, , not allow http connections.
Comments
Post a Comment