cURL Request using Swift iOS

General News

Summary

Recently I was facing a problem. I am using an API and the service provider only accepts cURL request. When I used https://github.com/Alamofire/Alamofire to make API requests like the following way it doesn’t work. After doing more research I found, you have to change the encoder from JSONParameterEncoder to URLEncodedFormParameterEncoder and then it will work So if you need to call cURL request in your Swift based iOS app, just follow the solution.

Classifications

industries
No industries detected
applications
Web and Content Management

AskAI Classifications

Labels
Developer Tools DevOps Software SaaS

Linked Companies

GitHub, Inc.
$1M to $5M