nshttpurlresponse Questions

5

Solved

I've an extremely weird problem, I'm requesting a URL and I want to get the cookies from it, I've used this way to get the cookies: - (void)connection:(NSURLConnection *)connection didReceiveRespo...
Largely asked 28/9, 2013 at 11:46

6

Solved

I would like to convert my response from the NSHTTPURLResponse type to String: let task = session.dataTaskWithRequest(request, completionHandler: {(data, response, error) -> Void in println("...
Proboscis asked 25/1, 2015 at 21:16

10

Solved

Converting to Swift 3 I noticed a strange bug occur reading a header field from HTTPURLResponse. let id = httpResponse.allHeaderFields["eTag"] as? String no longer worked. I printed out the all...
Impassioned asked 20/10, 2016 at 10:57

3

Solved

I have a situation where I need to access the raw response data for an AFJSONRequestOperation, from within the callback block which includes only NSHTTPURLResponse. I am able to get the statusCode ...

4

Solved

Here's my naive first pass code: var httpUrlResponse: NSHTTPURLResponse? // = (...get from server...) let contentType = httpUrlResponse?.allHeaderFields["Content-Type"] I've tried various deriva...
Nothingness asked 1/9, 2014 at 19:25

2

Solved

I am performing a simple get request with Apple's NSURLSession#dataTaskWithURL method [[mySession dataTaskWithURL:myUrl completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {...
Bellew asked 17/4, 2014 at 23:31

2

Solved

I'm using NSURLSession to request a JSON resource from an HTTP server. The server uses Cache-Control to limit the time the resource is cached on clients. This works great, but I'd also like to cac...
Hyperspace asked 22/7, 2015 at 0:37

4

Solved

I wrote a Swift App with Xcode6 Beta 2 that does some networking using CFNetwork classes such as NSURLRequest and NSHTTPURLResponse. The App works just fine with iOS 8, still, when I try to run it...
Lymphatic asked 2/7, 2014 at 6:59

2

Solved

Hello i need to create a progressView when i load data from my webservice. Actually the expectedContentLength alway return -1. After look lots of similary problem it looks like my webservice neve...
Cutshall asked 21/6, 2012 at 10:15
1

© 2022 - 2024 — McMap. All rights reserved.