HTTPWebRequest Expect header

  • Thread starter Thread starter Dave
  • Start date Start date
D

Dave

Hi,

This is one which I've seen several times on the web but no-ones ever come
up with a definite answer or response:

When sending HTTP requests through HTTPWebRequest it always includes the
header: Expect: 100-continue

Is there any way I can restrict this from happening?

Thanks,
Dave
 
Hi Dave,

Try playing with the Expect property. You can also try setting the
ProtocolVersion property to HttpVersion.10.

You can also refer to RFC 2616 section 8.2.3 for details on this header.
 
Back
Top