Questions tagged [nsmutableurlrequest]

NSMutableURLRequest is a subclass of NSURLRequest provided to aid developers who may find it more convenient to mutate a single request object for a series of URL load requests instead of creating an immutable NSURLRequest for each load.

Information : NSMutableURLRequest Class Reference

370 questions
0
votes
1 answer

How do I send a variable as POST from a Cocoa-Touch application to my php-site?

I have an iPhone application where I'd like to send some form data to my site (which is written in PHP). //This problem has now been solved. Typo in url.. :( NSString *urlString = "http://www.mywebsite.com/test.php"; NSUrl…
Sti
  • 8,275
  • 9
  • 62
  • 124
0
votes
2 answers

ASIHTTP post works different than NSMutableURLRequest

i used to have a method to post: -(void) execMethod:(NSString*)methodName andParams:(NSArray*)parameters withID:(NSString*)identificator { //RPC NSMutableDictionary* reqDict = [NSMutableDictionary dictionary]; [reqDict setObject:methodName…
mhunturk
  • 296
  • 2
  • 12
0
votes
1 answer

iOS Upload multiple files at once

Is it possible to upload two (or more) files in only one request?? I've been trying to do so with NSMutableURLRequest and NSURLConnection but no success so far, and I have found no convincing answers online. It's easy to upload a single file (using…
jere
  • 4,306
  • 2
  • 27
  • 38
0
votes
3 answers

setHTTPBody sending incorrect data in NSMUtableURLRequest

I have a problem with setting the HTTPBody of a request correctly. I'm using Oauth to communicate with our API server, the only difference is, that I need to send the data through body, not the header (using OauthConsumer.framework -…
Thunder
  • 611
  • 1
  • 8
  • 25
0
votes
1 answer

Calling asp.net web service from iOS application crash when data contains ampersands?

I have an application which actually calling asp.net web service but when I transfer data with & it stop working. Like below jsonString have first_name which have "Pranav &" so as this stage when I call service with converting it in…
Manish Jain
  • 842
  • 1
  • 11
  • 29
0
votes
2 answers

NSMutableURLRequest http status code 413

I have a web service. I use it to accept a base 64 string representation of a small (thumbnail size) image. This web service works awesome when using it with Fiddler and manually posting the request. When I run the same request with…
jdb1a1
  • 1,045
  • 1
  • 13
  • 32
0
votes
1 answer

Making a GET call on an OAuth protected URL

I'm trying to get an image sitting at a URL that is protected by OAuth. I've looked through the spec docs but can't seem to get everything right. Here's what I'm doing: Construct an OAuth Authorization header: NSString *oauthHeader =…
Steven
  • 1,049
  • 2
  • 14
  • 32
0
votes
1 answer

using SOAP web service for implementing login for iPhone sdk?

it will be greatful if you help me with this issue, i am a beginner on this platform and this is the first time am using SOAP service. , and i need to implement a login page. i don't know how to use the datas from the service. POST /soap.asmx…
Neeraj Neeru
  • 570
  • 8
  • 28
0
votes
1 answer

How to include textfield value in NSMutableURLRequest POST

I'm working on an image upload app. I got the upload part working and would like to include a comment from a UITextField in the POST. The UITextField is named commentText. myURL is defined in viewDidLoad. - (IBAction)startUpload…
Mark
  • 467
  • 1
  • 6
  • 21
0
votes
1 answer

Timeout for NSMutableURLRequest not working

I am trying to set the request timeout as 120 for the NSMutableURLRequest, but it is ignoring. The request timout fails within 90 secs. Can any one tell me how to set the request timeout for the NSMutableURLRequest ?? . I have gone through some…
Perseus
  • 1,546
  • 4
  • 30
  • 55
0
votes
2 answers

Set the timeOut value for NSMutableURLRequest

I am trying to set the timeout value for the NSMutableURLRequest, and while debugging, I have checked that it is not working. Googled for 10 mins, and I have got the info that , the default timeout value is 240 . The following are the code which I…
Perseus
  • 1,546
  • 4
  • 30
  • 55
0
votes
1 answer

NSMutableURLRequest HTTP Status 600

Working on iPhone app that takes a photo and then uploads it to a server. The server is in working condition, tested the same by uploading image from android app. Below is the code snippet NSString *contentType = [NSString…
Rohit
  • 6,941
  • 17
  • 58
  • 102
0
votes
1 answer

iphone - how to make JSON data for NSMutableURLRequest GET Method

I'm using JSONKit.h, JSONKit.m, ios5.1. and I tried to send data using GET method and POST also but my django server gave errors. Is my code wrong? here is my codes. NSString *myid = @"myidddd"; NSString *mypw = @"mypwwww"; NSArray *objects =…
ytkang
  • 161
  • 2
  • 13
0
votes
1 answer

Multiform data send to server using iPhone sdk

I’ve been trying to follow some examples for uploading data to a website. I want to save the message as a .txt file. Any ideas what to do here? - (IBAction)sendSerializedGreeting:(id)sender; { NSString *message; message =@"Here we go for…
Cherr Skees
  • 1,508
  • 2
  • 21
  • 37
-1
votes
2 answers

Beginners Question: Swift: NSMutableURLRequest

Would like to have some simple Stock Data in my project Using the rapidAPI for that I have various beginner mistakes, which I am not capable to fix. Some help would be appreciated. Tried to google for it and read apple documentation but did not…
Bercilak
  • 1
  • 1
1 2 3
24
25