1

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?

1 Answer 1

1

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

Sign up to request clarification or add additional context in comments.

1 Comment

I was trying to find something that allows me to read the response headers before sending the full body without making two requests, but I think that by using the HEAD method is indeed the correct way.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.