Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a small issue to quickly fix with a Js that request a page that should be empty.

Is it possible to redirect that request to something like /dev/null ?

Thanks in advance!


share|improve this question
So you want this to be a successful operation, i.e. it returns an HTTP 200 response, but the body of the response must be empty? – ThatGraemeGuy Feb 17 '12 at 14:02

Since the response will still contain headers, a really empty response is unrealistic.

An empty page is, of course, entirely doable; just point it to a resource that is empty:

touch empty.txt
share|improve this answer
simple as that, thank you! – pvledoux Feb 22 '12 at 10:47

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.