Questions tagged [nshttpurlresponse]
50 questions
0
votes
1 answer
ios get the headers from NSURLRequest I get error [NSConcreteMutableData allHeaderFields]: unrecognized selector
I'm trying to get the headers of the NSURLRequest with the following line:
NSString *contentType = [[(NSHTTPURLResponse *)data allHeaderFields] valueForKey:@"Content-Type"];
but I'm getting the following error:
-[NSConcreteMutableData…

HelenaM
- 1,807
- 6
- 30
- 41
0
votes
0 answers
send parameter values and retrieve an xml file Xcode
In my current xcode project, I need to send parameter values to a url and need to retrieve an xml file based on the parameter values sent.
I tried the below code but it's not working:
(IBAction)myButtonClick:(id)sender
{
NSURL *oRequestURL =…

user1583893
- 9
- 1
- 3
0
votes
0 answers
Multiple NSURLConnection's in one app confusing eachother
I have an app that uses 2 NSURLConnections to download information from a web server. They are each in completely different classes (class1 and class2). But for some reason after the one in class1 runs, and then I submit the other one in class2,…

Matt
- 2,920
- 6
- 23
- 33
-1
votes
1 answer
Json Parsing from NSURLResponse in IOS
I am getting response
{ URL: http://abcdxyz/api } { status code: 200, headers {
"Content-Length" = 0;
"Content-Type" = "text/html;charset=UTF-8";
Date = "Tue, 11 Nov 2014 06:57:01 GMT";
Server =…

Parijat Chakraborty
- 37
- 5
-7
votes
1 answer
Alamofire 4.4 with Swift 3.1 'Cannot call value of non-function type 'HTTPURLResponse?'
I'm updating app from Swift 2.3 to Swift 3.1. I've got several errors ;/
enter image description here

G. Machnio
- 1
- 1