Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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!

Pv

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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.