nsurlconnectiondelegate Questions

1

I am trying to implement nsurlconnectiondatadelegate as I need to support async mode - in synchronous mode redirects are followed automatically which I do not want. For reference I have the code ...
Replevin asked 27/5, 2018 at 10:18

8

Solved

I know that if I use following nsurlconnectiondelegate it will be fixed – connection:willSendRequestForAuthenticationChallenge: – connection:canAuthenticateAgainstProtectionSpace But I am try...
Acrid asked 17/1, 2014 at 23:23

5

I am using the react native Fetch API to get JSON data from https://api.github.com/users/{username} but the request fails with the following error message. "TypeError: Network request failed {st...
Hypostasis asked 27/4, 2015 at 16:34

1

Solved

I set NSURLCache on a specific folder (../../Application Support/Offline so it won't be deleted randomly by the OS), then I send a NSURLRequest with NSURLRequestReturnCacheDataElseLoad policy. How...

2

Solved

I use Xcode beta6. I created an app which have a Downloader class, and this is the Downloader class: class Downloader : NSObject { private var _connection : NSURLConnection? private var _downlo...

3

Solved

I am trying to consume secure restful service which gives error Error = Error Domain=NSURLErrorDomain Code=-1202 "The certificate for this server is invalid. You might be connecting to a server th...

1

Solved

When I send a synchronous request with NSURLConncetion [NSURLConnection initWithRequest:myRequest delegate:self]; I can receive my downloaded data in pieces with the following method - (void)co...
Surrealism asked 21/7, 2014 at 4:49

3

Solved

I am trying to download data in my application by using the following code NSURL *url = [NSURL URLWithString:@"my download url string"]; NSMutableURLRequest *request = [NSMutableURLRequest reque...

2

I notice in my app that when application enter background while loading causes the error such as "timeout" or "host name not found" . It is due to the process that does not allow connection to ru...
Limp asked 3/8, 2013 at 15:50

3

Solved

Most likely a rather trivial question but will the completion block always be called using [NSURLConnection sendAsynchronousRequest: ...]? OR do I have to implement a timeout timer? Consider the f...
Hardboard asked 20/3, 2013 at 8:11

6

Solved

How can I unit test my NSURLConnection delegate? I made a ConnectionDelegate class which conforms to different protocols to serve data from the web to different ViewControllers. Before I get too fa...

0

Overview I'm working on a SAML login (single sign-on, similar to openID) solution for an iOS app that involves showing a view controller with a UIWebView and I'm running into a timing and/or timeo...

4

Now that 5.0 is launched and we can discuss it without breaching Apple's NDA, I have an issue with the new version of NSURLConnection. This has a new delegate, NSURLConnectionDownloadDelegate with ...
Heifetz asked 13/10, 2011 at 12:55

1

Is it possible to cancel an NSURLConnection started with sendAsynchronousRequest:queue:completionHandler:? Why doesn't sendAsynchronousRequest:queue:completionHandler: return the NSURLConnection o...

2

Solved

I am running a NSURLConnection on a separate thread (I am aware that it is asynchronous and works when running on the main thread), but it is not making delegate calls even when I pass the parent t...

4

Solved

in iOS, how can I receive the http status code (404,500 200 etc) for a response from a web server. I am assuming it's in the NSUrlConnectionDelegate. Objective-C or Monotouch .NET answer ok.
1

© 2022 - 2024 — McMap. All rights reserved.