Top "Nsurlconnection" questions

An NSURLConnection is the Apple Foundation Framework class that provides support to perform the loading of a URL request.

How To Check Response.statusCode in sendSynchronousRequest on Swift

How To check response.statusCode in SendSynchronousRequest in Swift The Code is Below : let urlPath: String = "URL_IS_HERE" var …

ios swift nsurlconnection nsurlrequest
iPhone sending POST with NSURLConnection

I'm having some problems with sending POST data to a PHP script with NSURLConnection. This is my code: const char *…

iphone post nsurlconnection
HTTP Status Code 411 - Length Required

I try to get data from server. I use NSURLConnectionDelegate, NSURLConnectionDataDelegate. There is code (Objective - C). -(void)sendRequest { …

ios objective-c nsurlconnection nsurlrequest http-status-code-411
How to handle "CFNetwork SSLHandshake failed" in iOS

Some times i'm getting CFNetwork SSLHandshake failed -(9806) in my code,but i'm not sure why this is happening as …

ios nsurlconnection cfnetwork
NSURLConnection sendAsynchronousRequest:queue:completionHandler: making multiple requests in a row?

I have been using NSURLConnection's sendAsynchronousRequest:queue:completionHandler: method which is great. But, I now need to make multiple requests …

objective-c ios ios5 nsurlconnection
How to send Asynchronous URL Request?

I would like to know how do I get a return value 1 or 0 only.... back from an URL request asynchronously. …

iphone ios xcode nsurlconnection nsurlrequest
error handling with NSURLConnection sendSynchronousRequest

how can i do better error handling with NSURLConnection sendSynchronousRequest? is there any way i can implement - (void)connection:(…

iphone error-handling nsurlconnection
NSURLConnection finished with error - code -1002

Friends i have simple audio player (MPMoviePlayerController) which can play audio stream. On iOS 11 i have very interessing trouble, thousand …

xcode nsurlconnection mpmovieplayercontroller ios11
The certificate for this server is invalid

I know that if I use following nsurlconnectiondelegate it will be fixed – connection:willSendRequestForAuthenticationChallenge: – connection:canAuthenticateAgainstProtectionSpace But I am trying …

ios iphone nsurlconnection nsurlconnectiondelegate
How can I get NSURLResponse body?

I'm writing an application that connect with a server using NSURLConnection. In the delegate method didreceiveresponse, if the status code …

objective-c http-status-code-404 nsurlconnection nsurlrequest