nsmutableurlrequest

NSMutableRequest skd problem

Hi, I am trying to make a web call with the iPhone. I have done this before and it works fine but now I can't make it work. I am trying to use the following method call which the documentation says is availble in 2.0 and later: - (void)addValue:(NSString *)value forHTTPHeaderField:(NSString *)field; I am attempting to build for vers...

iPhone https post request

Ho all! I'm trying to' make a login with the iPhone into a https server.. I tried different solution, also asihttprequest and the solution works fine with http normal website, but with https the return data is the same of the login page... I news to' make something different for https? Thanks in advance this is the code that I tried: on...

NSMutableURLRequest: posting large amounts of data

I need to send large amounts of data (image files) by POST in a WebView, so I'm using NSMutableURLRequest with setHTTPBody:. Problem: if the data size is more than about 3MB, the app suddenly starts eating up huge amounts of memory and gets dog slow with all the paging. I've tried changing this: [request setHTTPBody:[NSData dataWithBy...

How to connect to Exchange-2003 form based authentication per objective-c

Hi all, I want to log on on the Exchange 2003 with form based authentication (FBA) via http-request (in objective-c). Idea: 1)to connect with the code below and get 2 cookies from server. 2)to connect to server per WebDav with these cookies There is the code for the first step. But instead of cookies I get the html-code for login-wi...

iPhone - is it possible to delete an xml file at server after parsing it

hi guys, im currently parsing an xml file that is hosted on another PC via hosting a Apache http server which works fine. Now is it possible to code it in such a way that the iPhone deletes the xml file on that pc? im currently using a NSMutableURLRequest and setting it to an NSData. NSError * error; NSURLResponse * response; NSMuta...

Setting Exchange 2003 OOF state and reply using WebDAV / objective-c

Trying to set my out of office on with a new reply message on Exchange 2003.... Here's my code: NSString *tempbaseurl = @"https://webmail.server.com/exchange/mailbox/"; NSURL *url = [NSURL URLWithString:tempbaseurl]; NSMutableURLRequest *req = [NSMutableURLRequest requestWithURL:url]; NSString *sMessage = @"I am currently out of the...

How to get a plist data from URL to NSArray ?

Here is my code it looks ok But it crash when running NSString *urlAddress = [NSString stringWithFormat:@"http://www....php"]; NSMutableURLRequest *request = [[[NSMutableURLRequest alloc] init] autorelease]; [request setURL:[NSURL URLWithString:urlAddress]]; [request setHTTPMethod:@"GET"]; NSData *returnData = [NSURLConnection sen...

iPhone POST request truncates string

Hello all, When I try to send out a POST request to a specific site the string I try to send gets cut off. When I check the length of the string in Xcode it is about 55000 characters long. The amount of characters received on the site is about 4500. This is my code: -(IBAction)convert { NSString *rosterText = [webView stringByEvaluat...

doing NSURLRequest and pass value through form-variable

Hi all, i would like to do a HTTP POST method to communicate with an ASPX page. I will need to pass the value through form-variable. how can i achieve it on objective-c? ...

Use NSMutableURLRequest with JSP

Hello, I'm trying to send an HttpRequest from an iPhone app with some parameters. The form is like this: foo.jsp <form action="/foo" method="post"> <div> <input type="hidden" name="id" value="1" /> <input type="hidden" name="vendidas" value="25" /> </div> <div><input type="submit" value="Send!" /></div> </form> So in the iPho...