http2 icon indicating copy to clipboard operation
http2 copied to clipboard

Does this MetaData support post request with body?

Open bijumon1986 opened this issue 8 years ago • 0 comments

I have an issue with making http/2 post connection with one server. The server is expecting post request with body. How can we acheive that with MetaData.Request..?

I used below code for Metadata.Request

MetaData.Request request = new MetaData.Request("POST", new HttpURI("https://" + host + ":" + port + "/3/device/ff9760c0104667b4ba0bcac0d7a2e46cdc4e179fc9be45069aab74a216c3cf78"), HttpVersion.HTTP_2, requestFields); // Create the HTTP/2 HEADERS frame representing the HTTP request. HeadersFrame headersFrame = new HeadersFrame(request, null, true);

bijumon1986 avatar Dec 09 '17 12:12 bijumon1986