Top "Response" questions

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

Returning JSON object as response in Spring Boot

I have a sample RestController in Spring Boot: @RestController @RequestMapping("/api") class MyRestController { @GetMapping(path = "/hello") public JSONObject sayHello() { return …

java json spring-boot response
java.lang.IllegalStateException: Cannot (forward | sendRedirect | create session) after response has been committed

This method throws java.lang.IllegalStateException: Cannot forward after response has been committed and I am unable to spot the …

servlets response illegalstateexception forward requestdispatcher
jquery ajax get responsetext from http url

Neither: var response = $.ajax({ type: "GET", url: "http://www.google.de", async: false, success : function() { alert (this); } }); Nor: var response2 = $.…

jquery ajax get response responsetext
C# Encoding a text string with line breaks

in C# I have a string I am writing to the outputstream of the response. After I save this document …

c# encoding response
JQuery - Storing ajax response into global variable

Im still somewhat of a newbie on jQuery and the ajax scene, but I have an $.ajax request performing a …

jquery xml ajax response
What is the difference between response.sendRedirect() and request.getRequestDispatcher().forward(request,response)

I have got a problem with my page jump when I use JAVA, if I use: response.sendRedirect("login.jsp") …

java jsp request response forward
Create HTTP post request and receive response using C# console application

I need to post data to a URL (https://somesite.com) to download file in responseStrem based on the parameters …

c# http console response
Remove Server Response Header IIS7

Is there any way to remove "Server" response header from IIS7? There are some articles showing that using HttpModules we …

security iis-7 header response
Guzzlehttp - How get the body of a response from Guzzle 6?

I'm trying to write a wrapper around an api my company is developing. It's restful, and using Postman I can …

php response guzzle guzzle6
Return generated pdf using spring MVC

I am using Spring MVC .I have to write a service that would take input from the request body, add …

java spring spring-mvc itext response