I need to rewrite the response received by the backend in varnish. The C-function is ready, embedded in the configuration file, and passes tests run on response headers. But I need to access the body of the response. I couldn't find a way to extract that from the response struct, though. Does anyone have an idea how I could extract it anyway?


Wouldn't it be easier to replace the bit of the body you want changed with an ESI tag?

  • Maybe he does not own the content? Maybe he is a system admin that has to provide a temporary fix but can't do it with HTML which developers territory and they have a longer SDLC to go through? There are a lot of reasons to do it. – Mindaugas Bernatavičius Jul 13 '16 at 5:47

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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