Questions tagged [response]

A response is a general term for a message which is sent as an answer for previously made request.

A response is a general term for a message which is sent as an answer for previously made request.

A request/response scheme is present in almost any communication protocol, particularly there message delivery is guaranteed, for example TCP, HTTP, etc.

Further Reading:

5919 questions
1
vote
1 answer

MVC control calling thread after export to excel

I have the export to excel working by creating a seperate ActionResult that sets the content type of the response stream header to "application/vnd.ms-excel" and also sets the excel file as a "attachment". Before all this starts, my calling view…
Ashish
  • 33
  • 3
1
vote
1 answer

Form reset - One input gets old value

My form reset button is not working as expected. I have a form with a textarea and a text input that is being submitted via Ajax. The Ajax response is then used for the values of the form inputs. When I click the reset button, the value of the text…
Jeff
  • 495
  • 1
  • 5
  • 18
1
vote
1 answer

ServletResponse outputstream not writing the file with capital .PDF

Actually I am trying to preview a pdf in chrome and download it. I am writing the byte array in the servlet response object and setting the following headers. response.setContentType("application/pdf; charset=utf-8");…
Dhivakar
  • 2,081
  • 5
  • 15
  • 18
1
vote
1 answer

Node Discord Bot Api Stock Quote

Hello I am wondering if there are any syntax errors in the following code which would prevent the symbol, name, and price from pulling through: if (command === 'getQuote') { let getQuote = async () => { let response = await axios.get( …
dilonv2
  • 53
  • 8
1
vote
0 answers

Group the Response and display the table with heading in Angular js?

I want to group the below response and display in a separate heading for each section of the table. can u provide me with a solution for the below code?? Js File has the response of car object: $scope.cars = [{ "brand": "Audi", …
John
  • 23
  • 6
1
vote
1 answer

API call within a Promise (TypeError: response.json is not a function)

Why do I keep getting TypeError: response.json is not a function? I did an extensive research about this, but all responses referred to async await calls, and I am curious about the pure Promise syntax (the "new Promise.." syntax by the way, not the…
Andres Diaz
  • 361
  • 1
  • 3
  • 4
1
vote
1 answer

Why does 2captcha not resolve recaptcha?

So basically I'm trying to make an program that automates creating accounts for this specific websites that needs captcha when creating an account. I'm trying to get a token from 2captcha (captcha token provider) which i then store in…
1
vote
1 answer

Listening for response in Alexa skills kit

I am currently using Alexa skills and AWS lambda to create a custom skill. I am currently stuck on trying to get Alexa to ask a question back to the user for a response. For example, I want Alexa to present a list of, let's say, books (which I have…
Mefew
  • 33
  • 4
1
vote
2 answers

Trouble on handling jQuery.ajax responses in a controller

I am using Ruby on Rails 3.0.7 and jQuery 1.6.1. I am trying to implement an AJAX request using the jQuery $.ajax() syntax and I have a problem on the response for which is triggered always the error callback. N.B.: router is successfully set. In…
user502052
  • 14,803
  • 30
  • 109
  • 188
1
vote
0 answers

SOAP Response to Tree etc

I have a Question About Soap Responses and how to handle them. I get a xmlstring from my Response, but have to convert it into this Class to Output into a specific Window with a view of a tree. public ExampleTree() { } public ExampleTree(string…
Hypes
  • 21
  • 2
1
vote
1 answer

How to verify entire JSON response in JMeter 5.3?

Is there a way to verify entire JSON response in JMeter 5.3? I saw some answers in different threads but need to verify the best solution in the latest version of JMeter? I tried to use JSON assertion as below but it's gives an error.
Flashmark
  • 119
  • 2
  • 10
1
vote
2 answers

Why any function in NodeJs can have req, res and next as a parameters?

const express=require('express') const app=express(); const port=3000 || process.env.port; function authenticate(req,res,next){ console.log(' user authenticated') next(); } function loadUser(req,res,next){ console.log(' loading users…
1
vote
2 answers

Alamofire JSON Response Error with post parameter

I use alamofire and swityjson, although I use it in the same way, I did not get any results here. let exampleURl = URL(string: exampleUrl)! let params: [String: String] = ["id": "expampleString"] let headers: HTTPHeaders = [ "charset": "UTF-8", …
Kerem
  • 11
  • 1
1
vote
2 answers

Incorrect response from Alamofire?

I am making a request to a server using Alamofire. Here is how i am doing it: Alamofire.request(url, method: .post, parameters: [:] ,encoding: JSONEncoding.default).responseJSON { response in print("response=\(response)") …
1
vote
0 answers

Assign this.variable to a value does not get assigned in VueJS Axios response

I am new to VueJs. I have a component called GetAllTasks in which it triggers a function that fetches the tasks Infos from the database. When there are no Tasks listed, I want to display a v-alert message. Here is the code for my component: …
NMSD
  • 484
  • 6
  • 18