Ariel Moraes
Ariel Moraes

Reputation: 648

ASP.NET WebAPI return headers before receiving request body

I have a scenario where I need to send some headers to the client before receiving the request body.

It would be like using the 100-continue, but I could not figure out how to do this with ASP.NET WebAPI.

Is there a way using the native tools and IIS hosting?

Upvotes: 1

Views: 130

Answers (1)

Fan TianYi
Fan TianYi

Reputation: 417

Please use http method “HEAD”. Please see https://www.rfc-editor.org/rfc/rfc2616#section-9.4

Upvotes: 1

Related Questions