We have used NSURLConnection for establishing the connection with the server. Can we differentiate between a connection failed or no response received from the server in an https connection in iOS 8(Xcode 6.3)? If yes, then please help us with this.
Difference between a connection failed or no response in an https connection in iPhone
233 views Asked by Amit Raj At
1
There are 1 answers
Related Questions in SWIFT
- Navigate after logged in with webservice
- URLSession requesting JSON array from server not working
- When using onDrag in SwiftUI on Mac how can I detect when the dragged object has been released anywhere?
- Protect OpenAI key using Firebase function
- How to correct error: "Cannot convert value of type 'MyType.Type' to expected argument type 'Binding<MyType>'"?
- How to share metadata of an audio url file to a WhatsApp conversation with friends
- Using @Bindable with a Observable type in SwiftUI
- How to make a scroll view of 9 images in a forEach loop open on image 6 if image 6 is clicked on from a grid?
- Using MTLPixelFormat.rgba16Float results in random round-off errors
- Search and highlight text of current text in PDFKit Swift
- How is passing a function as a parameter related to escaping autoclosure?
- Actionable notification api call not working in background
- Custom layout occupies all horizontal space
- Is it possible to fix slow CKAsset loading on Cloudkit?
- Thread 1: Fatal error: Unexpectedly found nil while implicitly unwrapping an Optional value - MapView.isMyLocationEnabled
Related Questions in NSURLCONNECTION
- NSURLSessionDownloadTask results in 404 status when server issues a redirect
- URLSession mysteriously fails on cell network only
- How to share cookies between WebView and NSURLConnection?
- In Xcode 14 & iOS 16 - purple warning when downloading an image from URL with NSData dataWithContentsOfURL
- RapidApi and Swift
- How Can I get Image data from specific URI in Swift?
- NSURLConnection switch to NSURLSession returning 404 response
- Getting date from web, returns nil
- sharedContainerIdentifier on NSURLConnection?
- A single "|" character in the URL breaks loading contents of URL
- I am getting EXC_BAD_INSTRUCTION in NSUrlConnection sendSynchronousRequest
- NSURLErrorDomain code 1200 and 1004 in a cordova hybrid app
- Task <E94BEE4D-E88B-4827-BE0A-E5CF1FE35F5C>.<0> HTTP load failed, 0/0 bytes (error code: -1200 [3:-9858])
- Nested nsurl dataTaskWithRequest but after the completion handler called
- How do I change NSURLConnection sendSynchronousRequest to include basic authentication for a HTTPS connection
Related Questions in XCODE6.3
- iOS Swift - Declare external function inside @IBAction func
- Xcode 7.2 - unable to execute command: Segmentation fault: 11
- iOS on archiving Found an unexpected Mach-O header code: 1918975009
- Google Analytics sdk creates issue in Xcode 6.3
- iphone_os_version_max_allowed >= 90000 returns false in Xcode 6.3.1
- After Update to OS X El Capitan and Xcode(6.3.1) simulator not listed
- Write into Settings bundle in Swift
- UIScrollview frame only updating correctly after scrolling
- Integrate Cocos2dx project within Swift Project (XCode 6.3)
- apple mach o linker error xcode 6.3
- How To detect Touch ID is Configured or not in device
- Custom fonts in Interface Builder XCode 6
- Dynamic resizing today widget
- Apple Mach-O linker error: Undefined symbols for architecture i386 Google Protobuf
- iOS 8 after hiding tab bar - reuse this space to display a text box
Related Questions in NSURLERRORDOMAIN
- SwiftUI WkwebView UIViewRepresentable is called twice or more and get error NSURLErrorDomain error -999
- seaborn.load_dataset results in URLError: <urlopen error [WinError 10060]
- Alamofire : Error Domain=NSURLErrorDomain Code=-1004 "Could not connect to the server." on trying to shift from https to http on same app session
- How to find the error description from an NSError code?
- NSURLErrorDomain code 1200 and 1004 in a cordova hybrid app
- TLS/certificate issue on iOS 14 using certs that worked on iOS 13 [NSURLErrorDomain, Error Code: -1202]
- Errors with OneSignal Connection in Xcode
- The operation couldn't be completed (nsurlErrorDomain error -1012)
- How do I setup an MPErrorDomain listener
- Are NSURLErrorDomain error messages supposed to appear in the Xcode console?
- NSURLErrorDomain Code=-1005 "The network connection was lost.", _kCFStreamErrorCodeKey=54
- Visual studio 2012 ultimate (URL error with images)
- NSURLErrorDomain error -999 using UIWebView
- Getting Error Domain=NSURLErrorDomain Code=-1005 on mobile network only
- How to enable SSL self signed certificate in AFNetworking 1
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
NSURLConnectionDelegatemethod-connection:didFailWithError:provides you with error describing reason for failure. You can differentiate between situations based onerror.code- list of codes here.