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

Popular posts from this blog

java - SSE Emitter : Manage timeouts and complete() -

jquery - uncaught exception: DataTables Editor - remote hosting of code not allowed -

java - How to resolve error - package com.squareup.okhttp3 doesn't exist? -