nsurlrequest Questions

1

Solved

I am still trying to convert our application from Swift 2 over to Swift 3 because I am being forced to since all of our Apple devices are now running iOS 10. I have gone through the code conversi...
Modiolus asked 4/10, 2016 at 20:6

8

Solved

I'm new to objective-c and I'm starting to put a great deal of effort into request/response as of recent. I have a working example that can call a url (via http GET) and parse the json returned. T...
Rearward asked 16/12, 2010 at 2:30

6

Solved

How do you append data to an existing POST NSURLRequest? I need to add a new parameter userId=2323.
Edgeways asked 27/5, 2011 at 7:1

1

Solved

I want to make a POST request from iOS (swift3) which passes a chunk of raw bytes as the body. I had done some experimenting which made me thought the following worked: let url = URL(string: "http...
Pinkney asked 5/8, 2016 at 21:56

2

Solved

I know this has been asked before but I have looked at every answer (there aren't many) and none help me. The issue I am running into is dealing with certificates with my schools e-mail service. ...
Lapoint asked 25/3, 2011 at 1:3

1

I am experiencing a large amount of crashes in the XTubeManager (seems to be CFNetwork internal). Unfortunately the console logs are not available, only the call stack (see below). Questions: I co...

2

Solved

Supposedly temporary exceptions can be configured via your app's Info.plist file. Following other answers, I added this entry to the info.plist but it does not help (even worse, after I changed the...
Latinist asked 2/10, 2015 at 16:51

3

I need to parse a xml file from a password protected URL I tried the following NSURLCredential *credential = [NSURLCredential credentialWithUser:@"admin" password:@"123456" persistence:NSURLCreden...
Frecklefaced asked 23/7, 2012 at 6:5

2

Solved

Authorization header is set in NSURLSessionConfiguration, however it is not attached to NSURLSessionDataTask. Is this a bug in Foundation framework? NSURLSessionConfiguration *configuration = [NSU...

5

Solved

how can i convert NSURLRequest to NSString ?
Saez asked 6/3, 2010 at 22:13

2

I am having trouble with my custom internet browser. I am using WKWebView. I have tabs in my app. If I click on a tab new NSURLRequest loads in the WKWebView. I need to implement a cache. If a user...
Honghonied asked 16/6, 2015 at 10:22

6

I am trying to get the user's contact details by singning up with twitter in my app. I found this project on github which seems really good. I encounter only one problem. If I run it with my new ap...
Arrearage asked 16/1, 2013 at 16:6

3

AFNetworking allows you to add an NSDictionary of parameters to a request, and it will append them to the request. So if I wanted to do a GET request with ?q=8&home=8888 I'd just making an NSDi...
Numskull asked 23/1, 2014 at 4:26

2

Solved

@IBAction func mainButtonnBeTapped(sender: AnyObject) { let session = NSURLSession.sharedSession() let request = NSURLRequest(URL: NSURL(string: "http://hq.sinajs.cn/list=sz000609")!) let task =...
Monospermous asked 17/8, 2015 at 12:53

1

I send the same HTTP message from a HTTP proxy client and with NSURLRequest + NSURLConnection, and get back different result. It is an authentication request. From HTTP proxy authentication request...
Deviation asked 23/7, 2015 at 12:25

2

Solved

I've configured HTTP/2 on a Jetty 9.3 server, it has a valid certificate and SSLLabs.com given it a grade A security configuration. Browsing using Chrome to https://example.com loads the correct r...
Westbrooke asked 6/7, 2015 at 5:33

3

Solved

Is there any way to add HTTP header to NSURLRequest object? I used to add them in NSMutableURLRequest using: [request addValue:@"PC" forHTTPHeaderField:@"machineName"]
Mckenzie asked 24/11, 2010 at 9:18

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 have a problem in that I am trying to background load a sound file while the user moves around a UIScrollView... The problem is that I am using NSURLRequest so I can load in the background, but e...
Quezada asked 3/11, 2010 at 19:13

4

Solved

Hi, I have the following code accessing a URL: NSString * stringURL = [NSString stringWithFormat:@"%@/%@/someAPI", kSERVICE_URL, kSERVICE_VERSION]; NSURLRequest * request = [NSURLRequest requestWi...
Daltondaltonism asked 28/2, 2013 at 16:50

4

Solved

I am trying to load a UIImage from its URL with completionand placeholder image , but neither the UIImage nor the placeholder UIImage are loaded. Here is my code: NSURL *url = [NSURL URLWithStr...
Holle asked 7/5, 2015 at 9:19

2

Solved

How do I check if a file exists on a web site? I am using NSURLConnection with my NSURLRequest and an NSMutableData object to store what comes back in the didReceiveData: delegate method. In the co...
Swanee asked 7/1, 2010 at 15:31

5

Solved

I'm using a NSMutableURLRequest to connect to a web site to get a JSON response. I'm doing so by generating the request, and then using NSURLConnection with a delegate of self to handle the async c...
Reiff asked 10/8, 2009 at 0:25

2

Solved

I'm trying to upload multiple files to a server using a POST request, but for some reason, only one file is submitted. I suspect I'm doing something wrong with the boundary, but I'm not sure where....
Lindberg asked 18/9, 2013 at 18:18

2

Solved

I have a UITableView whose cells contain custom ImageViews that asynchronously load the images from the internet. To load those images I use NSURLRequest and NSURLConnection which works fine. The o...
Imco asked 28/2, 2010 at 21:55

© 2022 - 2024 — McMap. All rights reserved.