nsurlrequest Questions

4

How can I make a request that contains no headers fields? The requests are being sent to my own server implementation from scratch, which doesn't care about header fields. The request will at most ...
Lawley asked 13/12, 2011 at 6:1

2

Solved

First of all, I'm pretty sure that I have checked every answer here and nothing does what I would like to do. In this question, for answer is given ASIHTTPRequest which is dead project. (How do ...
Vankirk asked 30/5, 2013 at 2:5

5

Solved

I would like to know how do I get a return value 1 or 0 only.... back from an URL request asynchronously. currently I do it in this way: NSString *UTCString = [NSString stringWithFormat:@"http://...
Jillianjillie asked 15/12, 2011 at 5:46

2

Solved

I want to add 2 parameters to NSURLRequest. Is there a way or should I use AFnetworking?
Indoeuropean asked 6/9, 2014 at 14:49

2

I've been looking into this topic for a while now and I can't really figure out how I could achieve this. Let's say we have a video from an HTTP Stream and I want to be able to play that video in m...
Ambitious asked 12/8, 2012 at 23:26

4

Solved

I need to pass some extra informations along with UIWebView loadRequest: so that it reaches my implementation of NSURLProtocol. The information cannot be bound to NSURLRequest because the informati...
Turpentine asked 30/10, 2013 at 15:35

1

I am trying to write a function that will execute an asynchronous GET request, and return the response (as any data type, but here it is as NSData). This question is based on: How to use NSURLConn...
Courtroom asked 17/7, 2014 at 0:9

5

I have been combing through the many many posts about uploading images via POST in iOS. Despite the wealth of information on this topic, I cannot manage to correctly upload JPEG data taken from my ...
Leicestershire asked 7/11, 2011 at 20:43

1

Solved

We have a problem with downloading files from the server in background mode. The HTTP header “Authorization” field is lost while redirecting the request to another server. We made some experiment...
Geniagenial asked 30/4, 2014 at 12:28

2

Solved

I am fetching data using iOS7's new URL request methods, like so: NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[self.baseUrl stringByAppendingString:p...
Filip asked 5/5, 2014 at 17:32

3

I'm using a NSURLRequest to check for available data updates. Today I noticed, that NSURLRequest caches the request by default. Even after several hours no new request was sent to the server. Now I...
Zeigler asked 13/4, 2012 at 9:8

2

Solved

In my iPhone application I need to query the last modification date of an internet .m4a file via HTTP, but I DON'T want to downloading it. I'm reading Apple's documentation about NSURLRequest and ...
Haiphong asked 1/6, 2012 at 19:33

3

Solved

Anyone?): I'm having a problem that has made me scratch my head for the last 2 hours, and it most likely a very simple stupid thing I'm missing. I Keep getting a building error when I Call the resp...
Largo asked 11/12, 2012 at 0:43

3

Solved

With an update to the client's API the HTTPBasicAuthication method has been replace with a OAuth2 Bearer Authorization header. With the old API I would do the following: NSURLCredential *credenti...
Rozanne asked 23/8, 2012 at 12:13

1

Solved

I'm coding an ios app and I need to send photo from my app to my grails server. In ios i do this: +(void)sendPhoto:(NSData *)data withName:(NSString *)name onController:(UIViewController<MERequ...
Bernitabernj asked 11/2, 2014 at 22:31

3

Solved

In iOS (current target 5.0, Base SDK 5.1) how can I send a post request to a server, and then read the contents of the page. For example, the page takes a username and password, and then echos true...
Yardley asked 24/4, 2012 at 14:46

4

Solved

I am sending a zip file to server via HTTPREQUEST. What should be the Content-Type HTTP header value for this kind of file? The file is a ZIP archive that contains images on type PNG. Thank...
Raisaraise asked 20/11, 2013 at 15:48

3

Solved

Got a singleton class, so called RequestManager, which shall handle requests made by different modules and background tasks of my application. @interface RequestFactory : NSObject - (void)request...
Birdwell asked 24/9, 2013 at 21:19

3

Solved

My iPhone application has been "lagging" or rather "frozen" when it got past the start up screen. I think this is due to the registration for remote push notifications is send as a synchronous requ...
Mouser asked 10/4, 2011 at 10:34

4

Solved

I'm trying to request this kind of URL in iPhone 4.0 SDK (access token slightly modified because you don't really need to see it): https://graph.facebook.com/me?sdk=ios&sdk_version=2&acces...
Burner asked 9/6, 2011 at 1:49

1

Solved

I am trying to change the User-Agent in iOS, however when I add my custom User-Agent it appends it to the existing User-Agent that contains my app name. This is the code I am using: NSMutableURLR...
Meteoritics asked 10/10, 2013 at 13:48

1

Solved

I try to get data from server. I use NSURLConnectionDelegate, NSURLConnectionDataDelegate. There is code (Objective - C). -(void)sendRequest { NSURL* url = [[NSURL alloc] initWithString:@"http://S...

2

Solved

I am downloading some very large data from a server with the NSURLConnection class. How can I implement a pause facility so that I can resume downloading?
Aqaba asked 16/3, 2010 at 6:37

5

I'm trying to get some data from an URL, but for some reason, nothing happens when I do the following. Neither didReceiveResponse:, didReceiveData:, didFailWithError: or connectionDidFinishLoading:...
Dansby asked 20/2, 2012 at 15:6

2

Solved

I'm trying do to an app which uses a database (actually in my localhost), I tried with ASIHTTPRequest but having so much troubles with iOS 5 (I learnt how to use ASIHTTPRequest form there : http://...
Chandelier asked 9/4, 2012 at 21:36

© 2022 - 2024 — McMap. All rights reserved.