Questions tagged [nsurlconnection]

An NSURLConnection is the Apple Foundation Framework class that provides support to perform the loading of a URL request. It is deprecated and should be replaced by NSURLSession.

An NSURLConnection object provides support to perform the loading of a URL request. The interface for NSURLConnection is sparse, providing only the controls to start and cancel asynchronous loads of a URL request.

It is deprecated in iOS 9.0 and OS X 10.11 and should be replaced by NSURLSession.

NSURLConnection Class Reference

3110 questions
1
vote
0 answers

Return result of asynchronous call to the method the called it

I'm writing a standard NSURLConnection class for the App I'm working on right now which I will hopefully be able to use subsequent apps as well. The idea is to able to pass a URL and a parameters array to a method in this class that will start the…
centreee
  • 137
  • 2
  • 8
1
vote
2 answers

NSURL Connection cache data for offine app

I have to develop a application for i iphone which can work in two way one is on line other is offline.When there is internet it should show the data from the network but when there is no network it needed to show cached data.I am using nsurl…
Sishu
  • 1,510
  • 1
  • 21
  • 48
1
vote
0 answers

Handling POST redirects with block-based NSURLConnection API

I have to solve the problem that NSURLConnection automatically redirects POST redirects with a 302 response as GET requests (and drops the HTTP body and some headers). I found and successfully tried the NSURLConnectionDataDelegate solution (e.g.…
Stefan
  • 1,051
  • 3
  • 11
  • 23
1
vote
1 answer

Newsstand and network errors

Guys I'm working on the Newsstand stuff now. I'm trying to handle network errors. What you see on the image below is my simple log ("Percentage: %i" is inside connection:didWriteData:totalBytesWritten:expectedTotalBytes:). My problem is depicted in…
Maciek Czarnik
  • 5,950
  • 2
  • 37
  • 50
1
vote
1 answer

UITableView delegates not getting called after NSURL delegates

I am trying to create an iOS app that gets some data from a web service and displays it in customized cells. So far i could verify via NSLog cmd that the data actually is in the corresponding array. This means the Connection delegates getting…
dom
  • 652
  • 1
  • 16
  • 35
1
vote
1 answer

Cannot get data using NSURLConnection with GCD

So I am downloading some data from a server to my ios client. The data needs to be formatted so I use NSNotification to notify the app when the data has been downloaded completely and when thats done, I format the data and then display it on the…
nupac
  • 2,459
  • 7
  • 31
  • 56
1
vote
1 answer

Apache is reporting 502 bad gateway on reverse proxy to CouchDB

I'm trying to set up a reverse proxy to CouchDB using Apache on an instance of Ubuntu Server 12.04. I have been accessing CouchDB directly through port 5984 but the lack of compression on responses is causing too much network usage, and the reverse…
Ell Neal
  • 6,014
  • 2
  • 29
  • 54
1
vote
3 answers

What is BEST way to download data from server and show in UITableViewController or UIViewController without stuck of its GUI?

There are many structures to download data from server. like ViewDidLoad Make NSURLConnection, call its delegate and when connection ends, make parser and parser data and then save to DB. (EVERYTHING IN THE SAME CLASS) Another way is Make a…
Duaan
  • 609
  • 1
  • 13
  • 29
1
vote
1 answer

NSURLRequest the request time out

I've a strange problem, I'm working on a project that I've to request from a server, When requesting a URL without parameters using GET method, it works fine and return the desired data, but when using the same code to call the URL and sending a…
Scar
  • 3,460
  • 3
  • 26
  • 51
1
vote
1 answer

IOS - calling soap webservice with transport based security (HTTPS)

I am developing an IOS application. In which I want to call a soap webservice method(transport based security (HTTPS)). I am following NSURLConnection to call the web service method. I have used the following code. - (void)viewDidLoad { //Web…
SKK
  • 1,705
  • 3
  • 28
  • 50
1
vote
1 answer

Expected Wildcard SSL certificate behavior with NSURLConnection

I have an NSURLConnectionDelegate that's handling SSL challenges, which is working just fine. The question is, why am I seeing the challenge for a wildcard certificate that's otherwise just fine? Note, by just fine I mean the signature is valid and…
shortstuffsushi
  • 2,271
  • 19
  • 33
1
vote
0 answers

MKNetworkKit upload file in chunks or sections

I work on a photo viewing/uploading client for iOS. Our server team wants to switch over to a system where we would break the file into sections (suppose 50k), upload all the sections, then make a call to the server to assemble them. My first…
VaporwareWolf
  • 10,143
  • 10
  • 54
  • 80
1
vote
1 answer

Multiple form data get

I have registration page for multiple users. When user register it will stores to database in multiple form data with username and password. Then i'm getting in viewcontroller with login page. When i use username=abcd&password=123 it working. But…
user2674668
  • 117
  • 2
  • 13
1
vote
2 answers

NSURLConnection connecting to server, but not posting data

Whenever I attempt to post something to my PHP Server, I receive the following message. It seems as if the code is connecting to the server, but no data is returned, and the post data isn't going through. It worked through a Java App that I made, so…
Philip Arpin
  • 128
  • 2
  • 14
1
vote
2 answers

NSURLConnection Timing out on iPad, fine on iPhone (Yelp AP/OAuth 2.0I)

I am using the Yelp Search API to basically just get a list of businesses for a search query. It is pretty much a NSURLConnection is OAuth, but here is the code to initialize the request: NSURL *URL = [NSURL…
Spenciefy
  • 892
  • 11
  • 33