How to implement Expect 100-Coninue behavior in a WCF server ?

Jenus M 6 Reputation points
2022-10-13T17:00:54.12+00:00

How to implement Expect 100-Coninue behavior in a WCF server ?

Internet Information Services
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,654 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,656 questions
ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
318 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Bruce (SqlWork.com) 61,811 Reputation points
    2022-10-13T21:22:43.12+00:00

    you turn support on/off with the service point manager (default is on)

    https://learn.microsoft.com/en-us/dotnet/api/system.net.servicepointmanager.expect100continue?view=net-6.0

    0 comments No comments

  2. Jiayao Wu-MSFT 176 Reputation points Microsoft Vendor
    2022-10-14T06:32:50.903+00:00

    Hi @Jenus M ,

    Gets or sets a Boolean value that determines whether 100-Continue behavior is used. True is the default value for expect 100-Continue.

    Here is the code example:

    var req = (HttpWebRequest) WebRequest.Create(...);  
    req.ServicePoint.Expect100Continue = True;  
    

    And you can take a look at the link for further info.

    --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments