It's not really clear to me what exactly the problem is, or what the server 
is expecting. Are you just trying to make a POST request with the body as a 
byte array? If so, that shouldn't be too hard - just call ToByteArray on 
the message, and then use that as the body of the request...

Have you already set up the server to receive protobuf requests? It won't 
just happen out of the box, without you configuring your server to handle 
it.

Jon

On Thursday, 10 November 2016 23:59:42 UTC, JAlsi wrote:
>
> Hello,
>
>
> I'm very new in developing with Protobuf.
>
> I did read the tutorial and after that I am able to create the .proto 
> files.
>
> Now the main problem.
>
> I have created a program in C#, which did send requests to a web APi on 
> our Server (http://url/api/car?id=1?format=json )
> Now, I want to use protobuf because it is much faster, but I don't know 
> how to connect the createt Classes (out of the protoFiles) to the APi.
> I know that I have to set the header to x-protobuf.
>
>
> Can someone show me, how to do a simple request ?
>
>
>
> Thanks!
>

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to protobuf+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at https://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.

Reply via email to