Questions tagged [sendasynchronousrequest]
100 questions
0
votes
1 answer
How to create async Webrequest from a list of http links within a text file
I have created a program that downloads links (from a web page) into a htm file. What I am hoping to do is test each one of those links within the htm file and output any links that are broken. Unfortunately not all of the downloaded links start…

Conall Curran
- 61
- 1
- 10
0
votes
0 answers
fetching image from URL taking too much time in watch app
I am fetching an image from a URL to set it as a background image of WKInterfaceGroup in a watch app but it is taking too much time (around 20 seconds) to load the background image, I seem to have used the most preferred method but I am not able to…

jayant rawat
- 318
- 2
- 12
0
votes
1 answer
Asynchronous request timeout interval never stop
I have asynchronous request to send image to server with POST. I set timeoutInterval to 10seconds. If it sent image to 10 seconds, everything works good, but when user have worse internet connection, it should stop request after 10 seconds. But this…

Patrik Dendis
- 313
- 6
- 20
0
votes
1 answer
How to redirect in Asynchronous Servlet?
According to this document, I understand a Request could be dispatch forward to another servlet in one Asynchronous Servlet which also makes container to call complete() and trigger another Servlet or JSP automatically.
But, what if I want to…

Korben
- 734
- 1
- 7
- 26
0
votes
1 answer
Upload UIImage in dispatch_async
I have a problem. I call some method in dispatch_async. But in callMethod2 in different object I am uploading image with [NSURLConnection sendAsynchronousRequest. But after upload, It doesn't show me response. (However when I call callMethod2…

Patrik Dendis
- 313
- 6
- 20
0
votes
1 answer
Returning value from NSURLConnect.SendAsyncronousRequest
func postToServerAction() -> String{
var stat = ""
var url: NSURL = NSURL(string: /*External LinK */)!
var request:NSMutableURLRequest = NSMutableURLRequest(URL:url)
var bodyData = "Username=" + userTxt.text + "&Password=" +…

Billy Sittichok
- 13
- 4
0
votes
1 answer
No code execution when the method sendAsynchronousRequest of NSRLConnection fails
I've implemented this operation:
[NSURLConnection sendAsynchronousRequest:theRequest queue:[NSOperationQueue mainQueue] completionHandler:^(NSURLResponse *response, NSData *data, NSError *connectionError) {
if (connectionError) {
…

Blasco73
- 2,980
- 2
- 24
- 30
0
votes
0 answers
android usb host asynchronous interrupt transfer
public boolean OpenDevice() {
_usbManager = (UsbManager) _context.getSystemService(Context.USB_SERVICE);
HashMap deviceList = _usbManager.getDeviceList();
Iterator deviceIterator =…

Rawat
- 461
- 3
- 6
- 23
0
votes
3 answers
Objective-C: Wait to execute 'While' loop until NSURLConnection request is complete
Basically I want a way to issue a NSURLRequest multiple times in a loop until a certain condition has been met. I am using a rest api but the rest api only allows up to a maximum of 1,000 results at a time. So if i have, lets say 1,500 total, i want…

cspam
- 2,911
- 2
- 23
- 41
0
votes
1 answer
sendAsynchronousRequest:queue:completionHandler: fails while app is in background
I am using internet availability check using NSURLConnection but it fails to call success or error block:
- (void)isNetworkAvailableWithCallBack:(SuccessCallback)successBlock onFailure:(FailureCallback)failureBlock {
NSURL *URL = [NSURL…

Umair Suraj
- 480
- 11
- 22
0
votes
1 answer
What is the difference between "asynchronousFetchRequest" and "create a private context"?
1.iOS8 provided asynchronousFetchRequest,and we can also create a 'private context' to fetch results, so what is the difference between asynchronousFetchRequest and 'create a private context'?
2.The type of NSFetchedResultsController's context must…

Joyann
- 1
- 3
0
votes
1 answer
App freezes / locks up when writing very large files
I'm downloading and writing ~200mb podcasts into the Documents directory with the following code:
var podcastRequest = NSURLRequest(URL: audioUrl)
NSURLConnection.sendAsynchronousRequest(podcastRequest, queue: NSOperationQueue.mainQueue(),…

allocate
- 1,323
- 3
- 14
- 28
0
votes
1 answer
how to display UIAlertView inside sendAsynchronousRequest's completionHandler?
I am developing a login application. I have a registration view, I'm using sendAsynchronousRequest to send registration request.When I received a data back I want to show alert view displaying the registration if valid. Now my problem is When I…

mustafa
- 451
- 6
- 15
0
votes
2 answers
NSURLConnection in Swift: How to call a function when it's finished loading, and restart it if the URL is a 404?
I am using Google Image API to generate images like this:
let url = NSURL(string: "https://ajax.googleapis.com/ajax/services/search/images?v=1.0&q=seattle")
let request = NSURLRequest(URL: url!)
NSURLConnection.sendAsynchronousRequest(request,…

ZhouW
- 1,187
- 3
- 16
- 39
0
votes
2 answers
Why I'm not entering into sucess event of $.ajax request
I'm new to this concept and working around with some basic examples to understand the asynchronous calls
$(document).ready(function () {
$('#btnLoadData').click(function () {
$.ajax({
url:…

Ein2012
- 1,103
- 1
- 13
- 33