I'm writing an iPhone app that requests data from a web service, and in order to get that data, I'm using NSMutableURLRequest.
The problem that I am having is that the amount of data being requested is quite large (~11Mb), and this is causing my app to be killed by the OS.
Is there any way of streaming the data in a way that will allow...
One of my view needs a big JSON file for tableview. I use gzip in HTTP request, but want to be sure of size.
The problem: How to measure size before and after ungzip? or how to know how strong gzip is?
This my code sample:
NSURL *url=[NSURL URLWithString:urlWithDate];
NSMutableURLRequest *urlR=[NSMutableURLRequest requestWithURL:url
...
NSMutableURLRequest apparently changes case on header fields.
For example, setting:
[request addValue:myValue forHTTPHeaderField:@"FOOBAR"];
will change the header field to "Foobar".
Anybody know a way around this? I am working with a service that requires a case sensitive field to be passed.
Also, NSMutableURLRequest shouldn't rea...
Hi guys,
I have a php form, that is working. With that form I connect to a DB, where i get data out. :-)
When I use the form from my Mac/laptop, i can enter the sata and I get the result.
When i try to connect with this code under here. I can pass the form, and establich connection to DB, but my query, where I put country in, is empty...
Hi, I try posting data to server, which in response i get the length as 0 and data not saving in DB. scenario is when i init the url the data would be sent and send back a response saying "data saved in DB"
NSString *mydata = @"HelloWorld ";
NSMutableURLRequest *request = [[[NSMutableURLRequest alloc] init] autorelease];
[request set...
Hi
Im trying to get TripIt OAuth authentication working, but I find the documentation to go a bit over my head. TripIt docs
The paragraph below is from the documentation, I have tried putting together a POST request for a SOAP service where the documentation specified what to put into the headers and how to build an xml for the Http bod...
hi,
i need to send a data through multipart posting and i have used Multipart.m and Multipart.h classes that i got from this below link
http://github.com/sschroed/mini-mallows
i have done everything they said and i want to set a timout for the request and i tried to do it by changing multipart.m and added a code[request setTimeOutInte...
I have a table view which i want to populate with the results (XML) of my call to a web service.
The NSURLConnection and NSMutableURLRequest that are doing the setup for this are currently in my -viewDidLoad method, and i also have all of my UITableView delegate methods in my .m file too.
The data is being returned and added to my arr...
I am having issues with my NSURLRequest and doing a POST whenever the string includes %, for example.
On my website, I can see that the encoding is ISO-8859-1,utf-8 for Accept-Charset but for some reason I cannot get the POST to work if it includes "%&$" etc. It seems like it won't encode it with UTF-8 encoding. Am I doing something wro...
Hello all,
I am working with a iPhone application in which I am displaying images in a scroll view.
The "Gallery" feature is working nicely but In an exceptional condition I want the view locked untill I get the images loaded .
So the question is how can I disable the view and show it slightly blurred while I am fetching the images .
...
Hello all ,
I am using the location manager to generate location data that I send in a URL to down load data. The first time I call the location manager, it correctly returns the current location and based on the current location I can fetch the data from the URL.
However, when I attempt to retrieve the current location a second time...
Hi, I am trying since for a longer time to post parameters to Outlook Web Access 2007 (owaauth.dll) for signing on. But it refuses.
This is the way I am doing (which is already working within a delphi program):
NSString *strUsername = [[NSUserDefaults standardUserDefaults] stringForKey:@"mailUserName"];
NSString *strPassword = [[NSUser...
Hi,
I've digged through a lot of topics regarding didReceiveData: method not being called (and the solutions is to set appropriate cachePolicy and implement willCacheResponse delegate method...) And so I did... And now I get didReceiveData message each time anything comes from the server. BUT: Unfortunately I don't get didReceiveData at ...
This code snippet isn't working, I'm getting an "Authentication Failed." response from the server. Any ideas?
NSMutableURLRequest *request = [[NSMutableURLRequest alloc]
initWithURL:
[NSURL URLWithString:@"http://www.tumblr.com/api/write"]];
[request setHTT...
I access a RESTFUL url and get back results. The results are in JSON. I turn the response into a string via:
- (void)connectionDidFinishLoading:(NSURLConnection *)connection {
NSString *json = [[NSString alloc] initWithBytes:[self.receivedData mutableBytes] length:[self.receivedData length] encoding:NSUTF8StringEncoding];
The json...
I create NSMutableUrlRequest for sending data to server, add all necessary fields to it and then add the string for sending like this:
[theRequest setHTTPBody:[postString dataUsingEncoding: NSUTF8StringEncoding]];
postString is a usual NSString.
The problem is, when I receive this request at the server, all the plus (+) signs disappe...
Hi all,
In my app i have to send a xml data as request, I am creating the xml string like this
NSString* str = @"<Item><Name>";
str = [str stringByAppendingFormat:string1];
str = [str stringByAppendingFormat:@"</Name><Description>"];
str = [str stringByAppendingFormat:string2];
str = [str stringByAppendingFormat:@"</Description><Ra...
I send HTTP post request to a server, but the server response is "Missing parameter: myHeader".
myHeader is the header that i put.
But everything is look ok in my part, so this is really weird.
help will be great
...
hi all,
I'm writing an app which uploads a UIImage to my server. This works perfect, as I see the pictures being added. I use the UIImageJPEGRepresentation for the image data and configure an NSMutableRequest. ( setting url, http method, boundary, content types and parameters )
I want to display an UIAlertView when the file is being up...
I'm POST'ing a small image, so i'd like the timeout interval to be short. If the image doesn't send in a few seconds, it's probably never going to send. For some unknown reason my NSURLConnection is never failing, no matter how short I set the timeoutInterval.
// Create the URL request
NSMutableURLRequest *request = [[NSMutableURLReque...