Questions tagged [sendasynchronousrequest]

100 questions
0
votes
0 answers

How to keep on requesting on a set of URLs asynchronously (python)?

I have a set of URLs (same http server but different request parameters). What I want to achieve is to keep on requesting all of them asynchronously or in parallel, until I kill it. I started with using threading.Thread() to create one thread per…
Wayee
  • 379
  • 1
  • 5
  • 17
0
votes
1 answer

Syntax error in SiddhiQL, no viable alternative at input '@sink'

I'm trying to send a synchronous request using http-request (source) and http-response (sink) in Siddhi based on an example here. I have an API, which I'm able to hit using a curl command. This is my curl command and the output. curl…
0
votes
2 answers

Not able to execute the Synchronous Request Response example in Siddhi

I'm trying to run the sample code given in the WSO2 Siddhi documentation. I've replicated what was given there. @App:name("Http_Request_Response_Tutorial") @App:description("This app demonstrate the usage of http request sink and http response…
0
votes
0 answers

Attempting to make an asynchronous Api Request save the response data as part of an object

I am trying to learn Javascript Classes and Asynchronous XMLHTTPRequests. I am not too good with Object Oriented Programming and therefore I am attempting to learn it to expand my knowledge. I have managed to understand how to define Class…
SShah
  • 1,044
  • 8
  • 19
0
votes
1 answer

Multiple Async HTTP connections to Tornado Server

I have a tornado server which I am trying to make synchronous. I have a client which makes asynchronous requests to the server simultaneously. It pings the server every 5 seconds with a heartbeat and secondly, it makes a GET request for a job…
0
votes
1 answer

How to pick latest api call when multiple api call were made

We ran into a problem when multiple API calls were made repeatedly the UI sometimes renders the wrong data. Example: onPageLoad event I have 5 API calls and we have date picker from where we can select the dates. When user tries to change the date…
0
votes
1 answer

How to achieve cascading http post calls in angularjs?

I need to make two http.post() calls from angular controller and the result of the first one is to be used in the next call. The next call should not be made until and unless we receive the result of previous one. This whole logic needs to be…
0
votes
2 answers

run a function multiple times without waiting for response in php

I have a mailing function and 100k email ids. I want to call a function multiple times like 10 times and in each time it will process 10k emails. I want to call this function without waiting for response just call a function and another and another…
0
votes
2 answers

Sendind http json request from AsyncTask

Here is small example for to understand my question: public class InitSettings_Task extends AsyncTask { @Override protected Integer doInBackground(Void... params) { request1result = request1; if (request1result) { …
0
votes
1 answer

connectionDidFinishLoading: not called with the use of [NSURLConnection sendAsynchronousRequest: queue: completionHandler:

I would like to launch a request with NSMutableURLRequest when the answer of the [NSURLConnection sendAsynchronousRequest: get a good status code. When I launch the executeForStatusOkMetod containing the NSMutableURLRequest alone, it works…
ΩlostA
  • 2,501
  • 5
  • 27
  • 63
0
votes
1 answer

how to stop executing react code until axios request gets completed?

I'm using React JS. At First, I need to fetch data from database using REST API and with this results, I'm setting some variables which further I'm passing to another class. Now I want to make a synchronous request through axios so that only…
Nitesh
  • 823
  • 1
  • 10
  • 15
0
votes
1 answer

How to use the values out of sendAsynchronousRequest?

I am parsing some JSON data using Http POST request and NSURLRequest. But when I have got the values under sendAsynchronousRequest I cannot use those out side of that request. Please see the example bellow: [NSURLConnection…
User9975
  • 37
  • 7
0
votes
1 answer

How to send Synchronous Requests with $http of Angular.js

hey guys I know this issue posted a lot, but nothing doesn't help me that is why I asking this question.Question is I am facing an issue of sending a synchronous request to php. here is my Model function which is sending request. State.pushData =…
Basit Munir
  • 428
  • 4
  • 18
0
votes
1 answer

On Local Or Live Server, In Simulator NSURLConnection sendAsynchronousRequest Giving response fast but in Device it's delaying in response

NSString * strURL = [NSString stringWithFormat:@"%@action=getResForOffer&offerid=%@",SERVER_URL,strOfferID]; NSURL *url = [NSURL URLWithString:[strURL stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]]; NSMutableURLRequest * request =…
0
votes
1 answer

Events and handlers, EventBus in Java

Hi guys I have a question, I googled something but I didn't find something interesting. I have two threads in java, one in background another one in foreground (UI). When backgrounds' threads changes state of gui variable I would like to send an…
rudald
  • 364
  • 5
  • 18