Questions tagged [sendasynchronousrequest]
100 questions
0
votes
1 answer
NSURLConnection sendAsynchronousRequest does not hit completion handler on some refresh requests
I have this code block:
+(void)requestPath:(NSString *)path onCompletion:(RequestCompletionHandler)complete
{
// Background Queue
NSOperationQueue *backgroundQueue = [[NSOperationQueue alloc] init];
// URL Request
NSURLRequest…

user2312407
- 67
- 1
- 11
0
votes
2 answers
NSURLConnection sendAsynchronousRequest never free up the memory
I am working on an iOS app which dispatch quite a number of tasks to my serial queue. The task is to download images from my web server, save it to disk, and later displayed on UIImageView. However, [NSURLConnection sendAsynchrousRequest] will keep…

Zennichimaro
- 5,236
- 6
- 54
- 78
0
votes
1 answer
Site search functionality not working for POST based form submissions
I have a search functionality set up in my website, which uses a third party extension retrieve the search results. The search terms are not passed as query parameters.
Below is my sample URL for my search…

Adi GuN
- 1,244
- 3
- 16
- 38
0
votes
1 answer
ios exc_bad_access because of a late dispatch
[NSURLConnection sendAsynchronousRequest:req queue:[[NSOperationQueue alloc] init] completionHandler:^(NSURLResponse *response, NSData *data, NSError *error) {
dispatch_async(dispatch_get_main_queue(), ^{
if(data != nil && self.superview…

Jacksonkr
- 31,583
- 39
- 180
- 284
-1
votes
2 answers
How to call a function on completion of an asynchronus request - Swift 2.0
I have an asynchronus request in a class like this,
class Req{
func processRequest(){
NSURLConnection.sendAsynchronousRequest(request, queue: queue, completionHandler:{ (response: NSURLResponse!, data: NSData!, error: NSError!) -> Void…

Deepika Masilamani
- 139
- 2
- 14
-1
votes
2 answers
async and await is not working
I am trying to use async and await in asp.net. for simplicity, my objective is call a method asynchronuosly and once return, update the data in label on UI.
Here is default.aspx
-1
votes
1 answer
NSURLConnection sendAsynchronousRequest returning null response in error scenario
When i send a async request using the sendAsynchronousRequest method, it returns the null response in the error scenario like 'invalid username'. In the API, i am sending the response, at error scenario with corresponding JSON values.
It receives…

Jayaprakash
- 1,407
- 1
- 9
- 19
-2
votes
1 answer
Change NSURLConnection from sendSynchronousRequest to sendAsynchronousRequest?
My Code for NSURLConnection with sendSynchronousRequest works fine but how can i change it to an async request? i tried a lot but nothing would work.
if the Request is empty i´ll get an empty Array with [[]] .
How can i catch it for an Alert…

user2636622
- 21
- 4
-3
votes
1 answer
getting stuck after sending async request to node.js server
I have tried it in console application
public async Task Getsmth(string a, string b, string c, HttpClient client)
{
string str = "call to node.js"
var response = await client.GetStringAsync(str);
return response;
}
calling it in console…
-4
votes
1 answer
How to call a async request but have additional code wait for the response in Objective-C
Here's what I'm doing: I'm processing a login that requires manipulating the data afterwards then fires off a new view. I want to do an async request since the server isn't always immediately responsive (and I don't want a crash because I held up…