Swift 3: send data with an HTTP POST request to a web server using NSUrlsession in iOS

preview_player
Показать описание
In this tutorial you'll learn how to do a post data request to a web server using Swift 3. You'll see the method to use to perform the http post request and how to concatenate the post data paremeters to send. You'll also see how to add http exceptions in the NSAppTransportSecurity, in order to allow in iOS 10 to perform an http insecure request.

Here you can fine the swift 3 project of the example:

Рекомендации по теме
Комментарии
Автор

Can you show the php server script your using. for this example. Thanks

mixhux
Автор

any idea how can i open chrome driver by POST request?

prakhar
Автор

bro how to get data from web through like scrapping in swift .would there this code will be applicable ?

thatwascomic
Автор

How to send multiple textfield ? your code only show how to post one textfield value only

bonjai