官方版

Reduce Delays from Expect: 100-continue headers

To have Fiddler return the 100-Continue header for a request:

  1. Click Rules > Customize Rules….
  2. Add the following function inside the Handlers class:

    1. static function OnPeekAtRequestHeaders(oSession: Session) {
    2. if (oSession.HTTPMethodIs("POST") && oSession.oRequest.headers.ExistsAndContains("Expect", "continue"))
    3. {
    4. if (null != oSession.oRequest.pipeClient)
    5. {
    6. oSession["ui-backcolor"] = "lightyellow";
    7. oSession.oRequest.headers.Remove("Expect");
    8. oSession.oRequest.pipeClient.Send(System.Text.Encoding.ASCII.GetBytes("HTTP/1.1 100 Continue\r\nServer: Fiddler\r\n\r\n"));
    9. }
    10. }
    11. }

    谷歌翻译版

    Reduce Delays from Expect: 100-continue headers

    要让Fiddler返回请求的100-Continue标头:

  3. 单击 Rules > Customize Rules….

  4. Handlers类中添加以下函数:
    1. static function OnPeekAtRequestHeaders(oSession: Session) {
    2. if (oSession.HTTPMethodIs("POST") && oSession.oRequest.headers.ExistsAndContains("Expect", "continue"))
    3. {
    4. if (null != oSession.oRequest.pipeClient)
    5. {
    6. oSession["ui-backcolor"] = "lightyellow";
    7. oSession.oRequest.headers.Remove("Expect");
    8. oSession.oRequest.pipeClient.Send(System.Text.Encoding.ASCII.GetBytes("HTTP/1.1 100 Continue\r\nServer: Fiddler\r\n\r\n"));
    9. }
    10. }
    11. }