Questions tagged [response]

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

response
Filter by
Sorted by
Tagged with
15 votes
2 answers
29k views

Laravel response Cache-Control headers always containing 'no-cache'

For some reason Laravel seems to be manipulating the response headers 'Cache-Control' on the very last moment. I want to make browser caching possible. class TestController extends Controller { ...
-1 votes
3 answers
2k views

why getting response as an html in string request alamofire swift?

hello I am using alamofire and swift 4 and I am trying to make a request to get some data from the api from server, and the response should be only a string including some number, when I get the ...
0 votes
1 answer
285 views

how to get response data of http listener in groovy file

Response is in JSON: { "msisdn": "123", "starttime": "2.11", "endtime": "7.10", "type": "simple" } I want to access this data in groovy file for further ...
4 votes
1 answer
2k views

WSO2 ESB Tracking Request-Response

I'm working on WSO2 ESB 4.8.1 By observing ESB HOME/repository/logs/wso2carbon.log i need to know the connection between one request and its relative response going through my proxy services. I ...
6 votes
1 answer
2k views

Storing request and session ID in context.Context considered bad?

There is this excellent blog post by Jack Lindamood How to correctly use context.Context in Go 1.7 which boils down to the following money quote: Context.Value should inform, not control. This is ...
0 votes
1 answer
145 views

Issue redirecting payment status from AJAX to PHP

Am working on a payment integration gateway with PHP whereby am listening for a response from the gateway which is either 1 or 2 or 0 . On success, I want to redirect any of the string to AJAX success ...
35 votes
1 answer
865 views

New Response from Stream in Microsoft Edge

Does someone know of a way to create a new Response from a ReadableStream in Microsoft Edge? For Chrome, this is quite simple. You can just take a ReadableStream and pass it in the constructor of ...
-2 votes
3 answers
370 views

How can I fix response text?

I use Google Cloud Vision Api (Text_Detection) it is working normal but when I return answer from the Google, message style like image I want just one text e.g "ACADEMIC PLANNER" so how can I remove ...
1 vote
0 answers
174 views

ServletOutputStream writes extra bytes to response

Here's my JavaEE application filter#doFilter code public void doFilter(HttpServletRequest request, HttpServletResponse response, FilterChain filterChain) throws IOException, ServletException {...
0 votes
1 answer
2k views

After Execution How to Write Request and Response in external file in Postman client ?

I am exploring postman client, but I didn’t get any option to export request and respective response after excitation. So that we can it as Proof of Testing and share it with client as well. ...
0 votes
1 answer
37 views

What is the best approch while returning API response to web/Android/iOS?

Use case : Posts filter items. Summary : Posts will be filter by tags and category wise. In this case i am returning filter items via a endpoint. The response are following. Issue : Android/iOS ...
1 vote
0 answers
92 views

Get data from google cloud to dialogflow

I have problem when I want to get responses from a google cloud datastore where I have created entities. My code in the fulfillment inline editor is: use strict'; const functions = require('firebase-...
0 votes
0 answers
23 views

Getting URL Contents with IP and Address Only

I am trying to create a website previewer in PHP to share with people. So I want to have a service that will allow me to get the contents of a website but without changing the domain names DNS. So ...
0 votes
1 answer
2k views

What does Consul Response code 429 mean exactly?

Consul is giving a response code 429 (Too many requests) for health check. Is it a valid response? What does it imply? API: operator/autopilot/health
1 vote
2 answers
2k views

How to handle efficiently Google Vision API Client Lib response?

I'm new to Google Vision API Client Lib I'm using Vision API Client Lib for PHP to detect text in images, this is my code: <?php require 'vendor/autoload.php'; use Google\Cloud\Vision\...
0 votes
1 answer
889 views

fetching data from response.body gives null uisng retrofit in android

Hey i am trying to fetch data from my api using retrofit with node.js backend and then set it to Textview. I am able connect to api successfully but it gives me problems when i try to set text to ...
8 votes
1 answer
8k views

send multipart response in spring boot

I am working on apis which is developed in spring boot. Now I have one API in which I have to send response which contains one binary file and and xml. Both will be seperated by multipart boundary. So ...
0 votes
1 answer
346 views

Nodejs how response locals on each get view on app.use

I am trying to handle simple user information through cookies, this information is visible in my layout through res.render, but I saw it very tedious, since it will always be simple information and I ...
0 votes
1 answer
448 views

Flutter-Framework, C# http server and an invalid JSON-Header s Invalid response status code

since i'm new to the flutter.io-app-framework and c#-http-sever (request and response), i'm struggling with an error for about two weeks or so. I'm completly new to JSON. My problem is an invalid ...
0 votes
1 answer
1k views

How to capture response body from API in NodeJS

I am new to NodeJS and I am practicing a small project. I have this code which sends request to my NodeJS express server via API endpoint. var XHR = new XMLHttpRequest(); var ...
31 votes
3 answers
27k views

RSpec testing redirect to URL with GET params

Let's say I have a FoosController with a redirect_to_baz method. class FoosController < ApplicationController def redirect_to_baz redirect_to 'http://example.com/?foo=1&bar=2&baz=3' ...
0 votes
1 answer
29 views

Response over time graph becomes very congested for larger number of URLs

I am using this https://jmeter-plugins.org/wiki/ResponseTimesOverTime/ plugin. I already have a .jtl file, I need to browse this .jtl file into the graph plugin and it would display results. The ....
0 votes
1 answer
44 views

In Rails, how to respond_to irrelevant non-http requests?

I have a relatively large website, and all day everyday it gets hit with requests that are irrelevant from all sorts of IP addresses. A common one is example.com/home.zip. This hits my Home ...
0 votes
2 answers
4k views

How to convert a ClientResponse to a java array or java object?

I'm using jersey to call different Rest Api and I've searched for a solution to convert the response to java array or list this is the output : [{"name":"TEST","number":22,"successNumber":11,"...
0 votes
1 answer
68 views

Node static file server, how to make response work in async callback?

I wrote this function that is triggered when I get a request on my node server, it works perfectly and it sends back a file that automatically starts to download. function(req, res) { // … other ...
0 votes
1 answer
1k views

Pass Base64 encoded byte [] as a JSON MIME Type

I have a REST service which @Produces(MediaType.APPLICATION_JSON). In the REST service, I have created an Image of type BufferedImage and then writing it to ImageIO as a png image. Next, I am encoding ...
0 votes
1 answer
3k views

command timeout through SqlHelper in asp.net 2.0

I have an application that works with asp.net 2.0, I want to increase command timeout but it is using sqlHelper class; dsData = SqlHelper.ExecuteDataset(connectionstring, System.Data.CommandType....
-1 votes
1 answer
813 views

Merge multiple ajax responses in one array

I have implemented dropzone.js in one website. When I drop multiple files in a div, dropzone.js sends one request at a time which is good for php performance and file upload limit. However the ...
0 votes
1 answer
60 views

CSS only responsive menu not closed on page load

I am using a css only responsive menu, unfortunately the environment I am working in doesn't support javascript. .header ul { margin: 0; padding: 0; list-style: none; overflow: ...
0 votes
1 answer
44 views

Jmeter - find out when HTTP sample started taking high response time

I have almost 2000 URLs for which I have to find out min, max and avg response time. I can get it using the aggregate report listener. Now we want to find out when one particular URL started taking ...
2 votes
2 answers
5k views

Remove attribute from Json response

I have a REST service whose response structure differs on certain attributes based in request. From my code I return different class objects(not ActiveRecord objects) based on response to be sent to ...
5 votes
0 answers
811 views

How to download multiple files via Flask and boto3 from S3

I have a list of .zip files on S3 which is dynamically created and passed to flask view /download. My problem doesn't seem to be in looping through this list, but rather in returning a response so ...
-2 votes
1 answer
999 views

How to prevent apache from sending connection close header <s>on 304 answers</s>

I have the following setup: Some files are dynamically generated dependent on some (only a few) session parameters. Since they have not a great diversity, i allow caching in proxys/browsers. The ...
0 votes
1 answer
293 views

Qualtrics: Save previous slider response and set as default in next slider

I was wondering if someone can help me out on the following issue: Participants are presented different behaviours that they have to rate on a slider from -3,-2,-1,0,1,2,3. All behaviours are ...
1 vote
2 answers
769 views

Logic App return JSON fields if its not null

How do i strip out fields of a JSON object returned in a Logic App HTTP response if the value is null? Current response message sample: { "Name": "John", "Age": 20, "Address": null } But ...
1 vote
2 answers
1k views

How to get date/time of request sent and response received for each thread in any listener in jmeter

I would like to have time/date of request sent to server, response received by client and latency by each thread in JMeter. Any possibility to achieve this in non-gui mode.
0 votes
0 answers
18 views

It is possible to pass additional objects aside the response.data in ExpressJS?

I would like my browser could returns: res.data ; res.additionalObject ; res.otherAdittionalObject ; etc. The problem is that the res.data is an array of object, then mapping in it ...
-1 votes
1 answer
227 views

Express - get request - How inject data in my response along the process?

I'm trying to add data to my "data" returned in express. Here my snippet, I'm trying to add currentPage and count variables: app.get("/blog/page/:pageTargeted", (req,res) => { var ...
2 votes
1 answer
1k views

NodeJS Joi Vlidation - How to return JSON response instead of a string?

Recently, Iv'e been using the Joi validation library in-order to validate the data which comes in from a request (building a RESTful API). I was using the .label() method to generate a string response ...
-2 votes
1 answer
127 views

Symfony - curl return invalid request

I am using cashflows documentation with specified url to try to return test request but dump() returns this error.. "V|99E5BB5DF59|000|V226|Invalid request\n" or The controller must return a ...
0 votes
1 answer
108 views

Scrapy: continue process result from parse function

I am trying to parse page A, download files listed in the page to local disk, replace URL in page A with URL to the files I saved, and finally save page A to local disk. I tried file pipeline but it ...
1 vote
2 answers
2k views

how to handle Alamofire request when network speed is slow or server is down?

I am new to the Alamofire which I am using to make a request to rest api. Now while making request there can be two issues and I want to know how to handle those issues using Alamofire. 1) What if ...
-2 votes
1 answer
542 views

HERE API request returns view instead of JSON

I'm trying to use the Places (Search) API (or any HERE API for that matter) for the first time. I tried the example in this page and got this page as a response: https://places.cit.api.here.com/...
1 vote
2 answers
270 views

API response send issue in mongoDb.

I'm using mongodb for make backend API. And I have used bluebird to use promise. return new promise((resolve, reject) => { db.collection('employee').find({ email: data.email })....
-1 votes
2 answers
3k views

Flask and HTML: Redirect json response to be displayed at the bottom of the same page instead showing response on a separate page

Super new to web development.. I'm deploying an sklearn Machine Learning model using Flask. I'm able to correctly return the response prediction as a JSON, but it is showing up on a separate page.. ...
0 votes
0 answers
531 views

Change Response type on Swagger

How do you change the response content-type on Swagger? I tried changing the media type to "content" : { "text/plain; charset=utf-8" :{ "ABC, XYZ" } Results in an error to remove additional ...
0 votes
1 answer
57 views

How to handle response in GraphQl and Neo4js

I am not able to get response back if the email is already exist in DB. I tried below example code. But I am getting null in response(see image) Here is my api {"query": "mutation authenticateUser($...
0 votes
1 answer
246 views

When data is larger than 1mb the response of api giving error

I am getting response on Android devices where it gives error when the response is larger than 1mb . I am using GoDaddy Cpanel Linux hosting. The Error is 520 : WebServer is returning unknow error. I ...
0 votes
2 answers
538 views

if condition is not working in error response

When I tried to check the condition for the response status, it is not even going inside and checking if, what should be done to compare and show the alert. FYI swal is a npm package used for alert ...
0 votes
1 answer
18 views

JMeter: What logic would be best to apply if each threadgroup is dependent on previous ones response

We have 2 thread groups which is dependent on previous ones response. SIGNUP will generate some PHONE NUMBER and PASSWORD in response which will be utilized by LOGIN thread group. I don't want to ...

1
47 48
49
50 51
119