Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
ProtoBuffers debug with CURL. ProtoBuffers should be installed first: "yum install protobuf" or "brew install protobuf".
key:"string value"
URL=full_method_url # i.e. "" (without quotes)
REQUEST=request_message_name # i.e. "Request"
RESPONSE=response_message_name # i.e. "Response"
PROTO=proto_file_name # i.e. "./Protocol.proto"
cat proto.msg | protoc --encode $REQUEST $PROTO | curl -sS -X POST --data-binary @- $URL | protoc --decode $RESPONSE $PROTO
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.