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

IOS - Make http request with specific mime type

I have a REST service running on a local apache server. I am trying to send a http request to trigger it from an ios application. I have tried in numerous ways but the request doesn't seem to reach the server. EDIT: The REST service decides what to…
user3461851
  • 45
  • 12
0
votes
2 answers

Passing the nsmutable array data to the NSURLRequest : Post data IOS7

Hi in my application i have stored data in my local database sqlite3. Now i have to upload the data form local database sqlite3 to online server. For retrieving the data i have used the dataDictionary to get all the data form the sqlite3…
user3427551
  • 347
  • 1
  • 7
  • 17
0
votes
1 answer

NSURL and NSRequest fails in php with UTF-8 through objective-c

I have a php script that enters a url string into a mySQL database. The url is sendt by an iphone app written in objective-c. It works fine except when the url code contains a scandinavian letter like ø, æ, or å. Example: NSString *myString…
Tom Tallak Solbu
  • 559
  • 6
  • 20
0
votes
1 answer

How to disable the whole view while fetching a request?

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…
harshalb
  • 6,012
  • 13
  • 56
  • 92
0
votes
2 answers

NSMutableURLRequest, cant access all request headers sent out from within my iPhone program

I am creating an iPhone http client that sends out 2 headers with its POST (or GET). My server receives 7 headers. The network library added 5 headers. Is there a way to access the added headers from within the ios program? or Is there a way to…
godzilla
  • 971
  • 1
  • 10
  • 18
0
votes
0 answers

Multiple service call issue with iOS7

I am dealing with a strange network issue. On iOS 7 a server call is randomly reaching twice on sever. This does not happen with iOS 6. From server logs it appears that same request (I am sending a unique ID in each server request) is coming twice…
Abhinav
  • 37,684
  • 43
  • 191
  • 309
0
votes
1 answer

Why NSMutableURLRequest gets defined different in iOS6 and iOS7

I Have the following piece of Code that works perfectly fine in iOS6 but not in iOS7, the difference is how the request1 is constructed by each version, why it changes and what can be done to make it work on both: NSMutableURLRequest *request1 =…
0
votes
1 answer

Managing Multiple NSMutableURLRequest and synchronous NSURLConnection in iOS

I am downloading the data from the web service API.In my project i have to download data using different APIs in so many places.So every where Iam calling web service, this leads to complexity of code. - (void)downloadInvitedVcards { …
Sudhakar Tharigoppula
  • 2,857
  • 3
  • 16
  • 17
0
votes
1 answer

Newbie trying to construct an URL for GET request - my test code and screenshot included

Being an iOS and Objective-C newbie I'm trying to construct an app, where the user can authenticate through Facebook, Google+ or 3 further (Russian) social networks. For Facebook I know, that I could use the Facebook SDK or Social.framework, but for…
Alexander Farber
  • 21,519
  • 75
  • 241
  • 416
0
votes
1 answer

Uploading an image to php server from iphone

I am trying to upload an image to server following is iphone and php code // create request NSMutableURLRequest *request = [[NSMutableURLRequest alloc] init]; [request setCachePolicy:NSURLRequestReloadIgnoringLocalCacheData]; …
Muhammad Umar
  • 11,391
  • 21
  • 91
  • 193
0
votes
1 answer

How to call a function of web service for login?

I have a Web-Service API in PHP and i want to do login using this api in my ios application. if (isset($_POST['tag']) && $_POST['tag'] != '') { // Get tag $tag = $_POST['tag']; // Include Database handler require_once…
Exception
  • 249
  • 1
  • 4
  • 17
0
votes
2 answers

post method not work when i post the data using nsmutableurlrequest and nsurlconnection?

I want to send my deviceid device type and phone number to server when I click on a button. I wrote my code here but it's not functioning properly. I dont know whats the problem is. - (IBAction)sendPostData:(id)sender { NSString *post=[NSString…
MAC113
  • 1,444
  • 12
  • 19
0
votes
1 answer

iOS : is iOS monitor XMLHttpRequest opened in a webview?

Is iOS monitor an XMLHttpRequest opened in a webview ? I would like to keep this opened connection when my app enter in suspended background, and now it is not the case. iOS kill my connection. I have tried to setNetworkServiceType to…
wawanopoulos
  • 9,614
  • 31
  • 111
  • 166
0
votes
1 answer

Upload an Image Using Objective C to a PHP Server

I'm developing an iphone app and using a POST request, I already read many post from this same topic but is still not working, I will appreciate some help, here is my code: //turning the image into a NSData object //getting the…
0
votes
1 answer

how to send base64 formatted string to PHP server using POST method, ios

Hello i am new to iOS and need to submit an image to php server. For this i have converted image into base64 format. and need to send this base64 string to PHP server. Code i am using fot this is, Please help i am completely new in ios // Create…
user2902101
  • 493
  • 1
  • 9
  • 17