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 am currently working on a project based on varnish..

we write vcl and vmod. But the project need check the request body. Buddies, How can I get request body in VCL or vmod with a C function? Help Needed.

share|improve this question

1 Answer 1

See http://stackoverflow.com/questions/7381220/varnish-vcl-gurus-how-to-pass-request-body-using-varnish-fetch

Varnish does not operate on POST requests, just passes them through.

share|improve this answer
    
:Hi, andreas, thanks for your reply. Varnish doesnot cache post request, but it matters not much. I need to get the post body in VCL. Do you you know how to realize it? –  StevenWung Nov 11 '11 at 8:40
    
I didn't find anything on it. Since varnish doesn't do anything with POSTs except for passing them through, speed is not really of concern here. You could re-route the request to another proxy which CAN work with POSTs, like apache filters or squid. –  AndreasM Nov 11 '11 at 13:34

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.