httpresponse

Setup a Filter that will set the Response Header to only Image File(s)

I am having a caching problem based on the discussion that I have in this link But I am not sure how to go about with the suggestion on setting the response headers on my Spring MVC. Does anybody know how to setup a some sort of a filter that will add add a response header only on image files? I currently am not an expert on J2EE web ...

In IIS7.5 what module removes the body of a 400 Bad Request

I have written ASP.NET (4.0) code that sets the Reposonse.StatusCode to 400 if the data posted to the server is in valid. I place useful information in the response body in the format that the request accepts header asks for. eg an html message saying "The date field is required...". In IIS7 (7.5.7600) on Windows 7 I get the correct htm...

Responding to httpRequest after using threading.Timer to delay response

Hey everyone, I'm trying to patch a testing framework built in python for javascript called mootools-test-runner (i'm a front end developer by day, so my python skills are pretty weak... really weak.) The use case is we want to be able to make a json request to the server and have it delay x amount of time before it returns -- original...

Sending Zip file to Client via Response - incorrect type being sent...

Hi Guys, OK, I've been pulling my hair out about this for ages. I have a WebService which sends a zip file to the browser. This works; when I test the WebService and 'invoke' the method through it directly, the zip file is downloaded to the browser correctly. The problem arises when I use jQuery to send an AJAX request to the WebServi...

Android asynchronus HTTP client problem

Hi guys, I am trying to implement asynchronus http client for Android and I am haveing a trouble with type mismatch: The method execute(HttpUriRequest) in the type HttpClient is not applicable for the arguments (HttpRequest) I am doing all based on this tutorial: http://blog.androgames.net/12/retrieving-data-asynchronously/ Hav...

How to stop asp.net to send a faulty response

I'm working on a functionality in my asp.net web site that enables the user to download some files as a zip file. I'm using the DotNetZip library to generate the zip file. My code looks like this: protected void OkbtnZipExport_OnClickEvent(object sender, EventArgs e) { var selectedDocumentIds = GetSelectedDocIds(); s...