nsmutableurlrequest Questions

4

Solved

I have a simple GET request that I am trying to run in my macOS application. However I keep getting the following error: A server with the specified hostname could not be found. The URL I am tryi...

9

Solved

I'm trying to ultimately have an NSMutableURLRequest with a valid HTTPBody, but I can't seem to get my string data (coming from a UITextField) into a usable NSData object. I've seen this method fo...
Ruscio asked 4/6, 2014 at 14:14

3

Solved

I have a secure webView which shows the customer to Load his wallet . I pass secure information MPIN(like a one time password). There is problem with @IBOutlet weak var loading: UIActivityIndicato...
October asked 20/2, 2017 at 12:26

2

I'm building an app that uses Single Sign On for users to log in. After the user enters a successful ID and password, the web side of things returns headers which I grab and store in my app. The WK...
Selig asked 28/6, 2016 at 16:36

0

I'm trying to make an authorized call to YouTube Data API v3, as it's described here: https://developers.google.com/youtube/v3/docs/activities/list I got everything working fine, until I get to th...
Euchologion asked 22/2, 2016 at 20:19

3

When I create new request for WKWebView with authentication cookie and send the request, WKWebView correctly loads protected web page: let req = NSMutableURLRequest(URL: NSURL(string: urlPath)!) ...
Portion asked 20/11, 2014 at 15:19

5

I want to call a web service with the POST method. I need to post a dictionary with a URL. My web service parameters are given below: ConversationMessage { authorUserId (string, optional), subje...
Scolecite asked 26/2, 2014 at 6:52

2

I want to ask if anybody has ever tried printing out the values of a NSMutableURLRequest *request; Here's my scenario, I have formed my XML and tried sending it using Firefox Poster plugin, I am s...
Escamilla asked 14/11, 2012 at 8:55

4

Solved

I am creating a NSMutableRequest: self.req = [NSMutableURLRequest requestWithURL:myURL cachePolicy:NSURLRequestReloadIgnoringCacheData timeoutInterval:10.0]; The timeout is set to be 10 seconds ...
Branham asked 15/7, 2015 at 10:30

1

Solved

I was wondering what the difference between setting a header value and adding a header value to an NSMutableURLRequest is. Sounds sort of obvious but, for example, can't you just use addValue every...
Depressor asked 23/4, 2015 at 6:40

1

Solved

I want to display the data from this URL: http://www.football-data.org/soccerseasons/351/fixtures?timeFrame=n14 My baseURL is let baseUrl = NSURL(string: "http://www.football-data.org")!, so my ...
Dreamworld asked 16/11, 2014 at 12:58

4

How can I make a request that contains no headers fields? The requests are being sent to my own server implementation from scratch, which doesn't care about header fields. The request will at most ...
Lawley asked 13/12, 2011 at 6:1

2

Solved

I know there may be several issues about this, but i´m facing a problem when i try to set a new "user agent" for my UIWebView. Here is what i am doing right now: NSURL *myUrl = [NSURL URLWithStrin...
Selfassertion asked 16/12, 2013 at 18:19

3

Solved

I am trying to download data in my application by using the following code NSURL *url = [NSURL URLWithString:@"my download url string"]; NSMutableURLRequest *request = [NSMutableURLRequest reque...

5

Solved

i am struggling to request web service using https. I am getting this kind of error: An error occured : The certificate for this server is invalid. You might be connecting to a server that is pret...
Fall asked 15/2, 2013 at 9:51

1

I've noticed recently, that my code, that uses AFNetworking (latest version from master branch) stopped working properly under iOS 6. Here's my code: httpClient = [AFHTTPClient clientWithBaseURL:...

3

Solved

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 i...
Confident asked 29/4, 2010 at 11:46

4

Solved

I read in Cocoa and Objective C: Up and Running that -copy will always return an immutable object and -mutableCopy will always return a mutable object: It’s important to know that calling -copy ...
Quarantine asked 27/8, 2011 at 2:56

2

Solved

How to print NSMutableURLRequest using NSLog ?
Triangular asked 26/4, 2011 at 6:58

2

Solved

This code snippet isn't working, I'm getting an "Authentication Failed." response from the server. Any ideas? NSMutableURLRequest *request = [[NSMutableURLRequest alloc] initWithURL: [NSURL UR...
Iinde asked 24/2, 2010 at 12:53
1

© 2022 - 2024 — McMap. All rights reserved.