tsenart / vegeta

HTTP load testing tool and library. It's over 9000!
http://godoc.org/github.com/tsenart/vegeta/lib
MIT License
23.51k stars 1.36k forks source link

Get Body from reponse #279

Closed Ankhez closed 6 years ago

Ankhez commented 6 years ago

Hi, can you help me? I can't find the one thing: how i can get body response from request? f.e. I have POST request and i want to extract some key's values from for use their in a new body request

smthpickboy commented 6 years ago

Would be really useful to return body from response in some way.

I'm using gRPC-gateway, when there's partial failure, I still have to return HTTP status 200 and include detail info in response body, because gRPC-gateway won't return response body if HTTP status is not 200.

So I have to parse response body to get meaningful statistics. I did this in my own fork, but really want this integrated into vegeta.

Thanks!

tsenart commented 6 years ago

I'm working on this and should have something out next weekend tops. Hold tight! Branch: https://github.com/tsenart/vegeta/tree/response-body

On Fri, May 11, 2018 at 5:47 AM, smthpickboy notifications@github.com wrote:

Would be really useful to return body from response in some way.

I'm using gRPC-gateway, when there's partial failure, I still have to return HTTP status 200 and include detail info in response body, because gRPC-gateway won't return response body if HTTP status is not 200.

So I have to parse response body to get meaningful statistics. I did this in my own fork, but really want this integrated into vegeta.

Thanks!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/tsenart/vegeta/issues/279#issuecomment-388251525, or mute the thread https://github.com/notifications/unsubscribe-auth/AAEHj1aMzO4mlKXrf96aHV3ycxWk6OeVks5txQnMgaJpZM4SsYPX .