[hybi] Are HTTP bodies allowed in Websocket client handshakes?

Emile Cormier <emile.cormier.jr@gmail.com> Tue, 31 October 2023 22:22 UTC

Return-Path: <emile.cormier.jr@gmail.com>
X-Original-To: hybi@ietfa.amsl.com
Delivered-To: hybi@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id B7F97C151980 for <hybi@ietfa.amsl.com>; Tue, 31 Oct 2023 15:22:33 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.107
X-Spam-Level:
X-Spam-Status: No, score=-2.107 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id G2nNOgho3LFD for <hybi@ietfa.amsl.com>; Tue, 31 Oct 2023 15:22:33 -0700 (PDT)
Received: from mail-wr1-x42a.google.com (mail-wr1-x42a.google.com [IPv6:2a00:1450:4864:20::42a]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 52892C151083 for <hybi@ietf.org>; Tue, 31 Oct 2023 15:22:33 -0700 (PDT)
Received: by mail-wr1-x42a.google.com with SMTP id ffacd0b85a97d-32f7db21967so2659440f8f.1 for <hybi@ietf.org>; Tue, 31 Oct 2023 15:22:33 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1698790951; x=1699395751; darn=ietf.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=WGXC6QfLaAbKiTiLPpFVHvJVVfQA2Q9adDTovE/OmtI=; b=fnxmSCeWw5TwrXIsVMJlhlPKt4/fE79kzvBIQ7EVbVN4Bnh/dlrYa/REsVCHGdodCb XB9OA1Ftx8DZNvsy8AA17UAO70VJyijUAogewsKJBJ07CeDApYOKorkLM4WVeysGWjn1 whkYJ0weHqx6C7ZJSdFIjgGsqL/BVnrP1XS91FMAQl4i0U+SE9uI2uglx+vbDr8FWgAF 3C4+yXFanGYKiUetHFz/kXx9TCg5ROXFZYkGI9FDTUsH7YzG1t869nlkVyqcVqtwmVBX UyDAlSHLsXq3L2SkCkYON+GXUipkcA5/58NKuR+2jnr2j7//cRgZGVGmJbIUg2KglEtn S7xw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698790951; x=1699395751; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=WGXC6QfLaAbKiTiLPpFVHvJVVfQA2Q9adDTovE/OmtI=; b=GyWF1JG3Mx+K67J57xWuYMT61yKkvxNLbgmWSfWFLwA5UBOWSNjdFctn/2LysPrCyL 16vbqbmS9gfJq8KTBRg825bjKlRJMd9NQ53O0JgoQ0J1XD5cGiN2pWAcaUomCqjK9JE0 LT+6qQqyKumMs6B5pfR2SDFRlHgQR75zk0BXPEhXL/O+LfK6svkjspENWtVHIe1Kci9K wU0/oUtkFBMEU2ohrVxzl50OHh4sy64qg3dKx0scBWRb6RfZj/7B6VgOV5RhY24JosSk hLT5aGv7LINB/U/NJjHempWFYNMnrCtpdF7C/pzooQk85PhalG6QHppNvu4G2Qy10Go7 4iVg==
X-Gm-Message-State: AOJu0Yy6Ce5eyskMc1ySWQs5cHoDSg56dW/bitWP8H6VG+SuoX8X2MYg MvsAwE2Q77wGIRLtEo5Squ+X5z0ZQLmOwIO0fsV8weB9bbA=
X-Google-Smtp-Source: AGHT+IGuvRdhL/+4QR6/RcngJCvO8PM+zSeGGgLkIkRuZ+E3TqFQdSzOlX1F3MOIv1K9hzGaG0W1O6U1Dnqbvn4zUSM=
X-Received: by 2002:adf:e442:0:b0:32f:932b:e031 with SMTP id t2-20020adfe442000000b0032f932be031mr2721497wrm.68.1698790951281; Tue, 31 Oct 2023 15:22:31 -0700 (PDT)
MIME-Version: 1.0
From: Emile Cormier <emile.cormier.jr@gmail.com>
Date: Tue, 31 Oct 2023 19:22:20 -0300
Message-ID: <CAM70yxBLYpf9uG=z2eAmQhRQgPvzvMWDC+vBPYEnq=Cqw7+9Bg@mail.gmail.com>
To: hybi@ietf.org
Content-Type: multipart/alternative; boundary="00000000000032e9a406090a97cd"
Archived-At: <https://mailarchive.ietf.org/arch/msg/hybi/e61G5-wGAHlYTmVWVoDApIyPjlw>
Subject: [hybi] Are HTTP bodies allowed in Websocket client handshakes?
X-BeenThere: hybi@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: Server-Initiated HTTP <hybi.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/hybi>, <mailto:hybi-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/hybi/>
List-Post: <mailto:hybi@ietf.org>
List-Help: <mailto:hybi-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/hybi>, <mailto:hybi-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 31 Oct 2023 22:22:33 -0000

Hi,

As per the subject, are HTTP bodies allowed in Websocket client handshakes?
Should the server ignore them, or treat their presence as a protocol error?
Web searches don't bring up anything about this question.

The RFC only uses the term "body" in relation to close, ping, and pong
frames.

Cheers,
Emile Cormier