Questions tagged [nsurlrequest]

on iOS , NSURLRequest objects represent a URL load request in a manner independent of protocol and URL scheme. NSURLRequest encapsulates two basic data elements of a load request: the URL to load, and the policy to use when consulting the URL content cache made available by the implementation.

1095 questions
0
votes
1 answer

After ReverseGeocoder in CLLocation Cordinate ,what Should i give to Google Map Web Service For Exact Location?

I am trying to draw route between two location. For that i have Two CLLocation (startPoint ,endPoint). After MKReverseGeocoder of this two location I got out put like this. - (void)findAddress{ geoCoder1 = [[MKReverseGeocoder alloc]…
Musthafa
  • 862
  • 3
  • 12
  • 27
0
votes
1 answer

NSURLConnection sendAsynchronousRequest: Long run on https

I am trying to switch from http to https for some server API calls right now and I am having a problem with it that I cannot explain to myself. Right after switching from http to https I am experiencing that my async request takes the full 60…
arnekolja
  • 1,687
  • 5
  • 22
  • 29
0
votes
1 answer

Receive data from PHP script with NSURLRequest

I have an app that sends data to a PHP script with the NSURLRequest and NSURLConnexion. What I want is to send a data like "Hello world" with post method, and I want display on my app "Hello world from myPHPScript.php !" but I have no experience on…
Edelweiss
  • 621
  • 1
  • 9
  • 24
-1
votes
1 answer

How to upload NSData Object to server with specific name?

How to upload NSData Object to server with specific name ? NSData *imgData; // Image Data NSString *imgName = @"myfile.png"; I want to upload data to server with specific file name. 1. Upload Data (imgData) 2. To server…
ChangUZ
  • 5,380
  • 10
  • 46
  • 64
-1
votes
1 answer

Webview is not showing anything

I am trying to load UIWebView on detailview when users tap in masterView Table. But somehow my UIWebView is not showing anything. Here is my code: NSString *manualURL = self.detailItem; NSURL *url = [NSURL…
slonkar
  • 4,055
  • 8
  • 39
  • 63
-1
votes
0 answers

Problems with NSURL and UIWebView

I'm working on a master detail app and I'm having a problem reloading my webview after a selection is made in the tableView. I'm inclined to think the problem is something very simple with my NSURL assignment. Below is the relavent code. this…
evanmcdonnal
  • 46,131
  • 16
  • 104
  • 115
-1
votes
2 answers

NSMutableURLRequest incomplete length in PHP

I have a very annoying problem, which I'm trying to solve. I have an iPhone app that sends several forms of data to a server. The server-side processes the data and responds, with PHP. With small lengths of data this goes fine, but one of the…
Reinder de Vries
  • 522
  • 1
  • 6
  • 26
-1
votes
1 answer

iOS: How to get a specific string from a Data containing Strings and an image?

I have that code that add values to body: let body = NSMutableData() let mimetype = "image/jpg" //define the data post parameter body.append("--\(boundary)\r\n".data(using: String.Encoding.utf8)!) body.append("Content-Disposition:form-data;…
ΩlostA
  • 2,501
  • 5
  • 27
  • 63
-1
votes
1 answer

URL request: How to set reserved headers?

I 'm creating URLRequest with "Authorization" header and it works fine with most of app users but recently I faced that some users cannot make the requst. apple says that "Certain header fields are reserved (see Reserved HTTP Headers). Do not use…
MAHMOUD OMARA
  • 85
  • 1
  • 6
-1
votes
1 answer

how to pass string as parameter in post method

I am new to IOS i need to know how to pass NSString as parameter in nsurlconnection POST method,i passed string but it become empty viewdidload: NSString *parseURL =@"http:url"; NSString *encodeurl =[parseURL…
A.sonu
  • 159
  • 10
-1
votes
4 answers

Send next request when last one is done

I have 100+ request.I need send a new request when the last one is done,so the server will not return error code - 429. How to make this by afnetworking 3.0?
lsdoy
  • 129
  • 12
-1
votes
1 answer

Can't upload 2 images in a single NSURL request in POST method

We are sending right post request to API by multi parting both the image data.So,there is an issue both image are not uploading, just a single image is uploading to server. I have checked the parameter name which are as same provided from API…
Vizllx
  • 9,135
  • 1
  • 41
  • 79
-1
votes
2 answers

App Transport Security has blocked a cleartext HTTP (http://) resource load since it is insecure.

Supposedly temporary exceptions can be configured via your app's Info.plist file. Following other answers, I added this entry to the info.plist but it does not help (even worse, after I changed the xml file I get a permission error when I attempt to…
PatriciaW
  • 893
  • 1
  • 12
  • 30
-1
votes
3 answers

NSMutableRequest not working for the second time (ARC enabled)

I am performing JSON POST request by clicking UIButton and after the submission, segue perform can be done. So, After submitting values, I cannot perform POST request anymore. It shows status code 200 and response is OK. But, data is not reflected…
-1
votes
1 answer

How to Populate UITableViewCells with data from URL?

I am quite new to iOS. I Just want to know few methods to populate the table view with data from specific URLString.
Sushil Sharma
  • 945
  • 1
  • 7
  • 9
1 2 3
72
73