Urlsession Questions
Ad
Swift HTTP Post Request returns HTML of site instead of JSON response
I am trying to reach a site that should take the username and password given and return a json which contains information stating whether or not
How to stub URLSession in Swift?
I have been following this
How to pass data into header while using URLSession in Swift?
I am new to swift and am in the learning phase. i have to basically make a request using urlsession but the api does not allow any
Not retrieving .notConnectedToInternet URLSession
So i'm trying to get urlsession urlerror.code .notconnectedtointernet but all i'm getting is code(rawvalue: -1020) when
How to wait for Swift's URLSession to finish before running again?
Probably a stupid question, but i'm a beginner at this. the below code is supposed to get book information from google books from a
Background mp3 download on iOS 14 in a swift ui app
I'm creating a swift ui radio streaming app that has a library of past episodes that can be downloaded. i would like users to be able to begin a
Read Data/Response/Body of redirected NSURLDataTask
I am currently trying to access a webpage where the user can login using their credentials, after entering their user and password - if correct it
do network call from current ViewController or parent ViewController?
I'm writing an app that contains network call in every other screen. the result of calls would be the datasource for a specific screen.
Failing to Upload Picture with multipart/form-data to a Server
I've read quite a lot of topics here on multipart/form-data. it still doesn't work. i am able to upload a file to my server with
Converting Image Data into Base64 String For MySQL Blob and Decoding it Back
I'm trying to send data (first name, last name, age, image) to a mysql database. and i can. the following is what i have.
Ad
Network reachability check in WatchKit
As systemconfiguration framework is not supported for watchkit os, has anyone worked on or know of an alternate method to do network reachability
How to print the web service request and response from dataTaskWithRequest
Can anyone guide me how to print the web service request and response from datataskwithrequest in json format while using swift 4.0 and objective
sending parameters with json in swift
I'm trying to use webapi in my code. my json service has odata filtering. but when i try to send my link into my json serializer, i get "nil"
Converting NSData to NSDictionary
I am trying to fetch data from an url
Why do I see an error about 'data(for:delegate:) is only available on iOS 15.0+' even though modern concurrency is backward compatible
Modern concurrency with the new async / await was introduced for ios 15 and above with swift 5.5 but very soon, with the release of
Test that NSURLSessionConfiguration settings are obeyed
I created an nsurlsessionconfiguration with some default settings but when i see the request object made with that configuration in my custom
Swift - Downloading Multiple Images Asynchronously
I currently have working code that lets me download a single image. it then puts that image in a imageview inside a collectionview cell.
How to POST request with parameters using Alamofire/URLSession.dataTask in swift
I have tried two methods to post request to call api. alamofire & urlsession.datatask but i m unable to send
How to upload image or file through multipart form data with multi parameters in Swift4
I have a problem uploading a picture or file through image picker controller. i have selected image through image picker then pass the parameters
Ad
Blog Categories
Ad