From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: ozzloy Newsgroups: gmane.emacs.bugs Subject: bug#63941: [PATCH] ; always CRLF before non-first boundary in multipart form Date: Wed, 7 Jun 2023 23:43:22 -0700 Message-ID: References: <837csf4fp8.fsf@gnu.org> <83jzwe32pj.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000009833d905fd9892e5" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10503"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 63941@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jun 08 08:44:25 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1q79Nh-0002UP-BU for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 08 Jun 2023 08:44:25 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q79NM-0002eV-Fw; Thu, 08 Jun 2023 02:44:04 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q79NK-0002e4-Ot for bug-gnu-emacs@gnu.org; Thu, 08 Jun 2023 02:44:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q79NK-0008Le-Fy for bug-gnu-emacs@gnu.org; Thu, 08 Jun 2023 02:44:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q79NK-0002xN-1D for bug-gnu-emacs@gnu.org; Thu, 08 Jun 2023 02:44:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: ozzloy Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 08 Jun 2023 06:44:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63941 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 63941-submit@debbugs.gnu.org id=B63941.168620663011335 (code B ref 63941); Thu, 08 Jun 2023 06:44:01 +0000 Original-Received: (at 63941) by debbugs.gnu.org; 8 Jun 2023 06:43:50 +0000 Original-Received: from localhost ([127.0.0.1]:55503 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q79N7-0002wl-Hf for submit@debbugs.gnu.org; Thu, 08 Jun 2023 02:43:50 -0400 Original-Received: from mail-oa1-f54.google.com ([209.85.160.54]:52717) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q79N3-0002wV-Pq for 63941@debbugs.gnu.org; Thu, 08 Jun 2023 02:43:48 -0400 Original-Received: by mail-oa1-f54.google.com with SMTP id 586e51a60fabf-19f30256921so280931fac.1 for <63941@debbugs.gnu.org>; Wed, 07 Jun 2023 23:43:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686206620; x=1688798620; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=xqamzoFE9TH+gktTRQQfq86oIRCqdQLe8d0/4JpSkMg=; b=pE4YmdKArrWVe60tbz/bdPoJ6fyHzmIUqqV4xm/eXHjcrqeGdIx0zRrBBC3wZ16QfZ z0MTkyX1mQYFpl1tRTlmdOFOrnfE98X2JfADhNCo6nftZ8Mvh4EhaMmm3ipTpN0BGfQ9 aY1BMkJbtIHoA22DI2dhKeLtscWyjp3Vr85AhqPseveu8oerD1L9AfVDlqpce75tzACZ pPezXy8+bDSV9UpqBx74USnJRt6Ng2dkGbwosfSRKuL6wBHaaEdxwuQCUplJwYLjEXLD FuVkqOa5nkT7CBZjc9LamfanuQIHeUAFlxvJEISKxzdZB8HlMJt3HrTbxJebm9/evaFz vq4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686206620; x=1688798620; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=xqamzoFE9TH+gktTRQQfq86oIRCqdQLe8d0/4JpSkMg=; b=UT58HSeuuyDuTtEol9xAN+TZmnewqUwdStjBxyisvvNmZk0E28azYY1FUe6ooORMhB XYmoK0geePkawckkiwsUdfhSgXrVgZLtLoM9c4ieC0ECgfpNDXEDVASJcn2K9aUJ4EEw BOWH6T8l1wYgDkx1o+Ul0lI7TyjrlhxxQ4WDzJKXl8zLdelC9FAXOXOJn48ChIAvPQ8Q WWWZ2firN6Z1ccdVHNk7CJJkpmy0jr+a98pZYt/xTkrLx0REETQM2g3qhucV7hBmKMpA zF7i7O67F6nz6raSGGJvJ5Cm4ogjlaScwwCeyzsfeh9yANW3mC5ILj7n1L3jlFUApS3J rKqw== X-Gm-Message-State: AC+VfDyvLGtzboEcx4GZZ+j7uVaKgfwKT0baJehm3Got62hzJPM2nTvI BuFHDjBWqumxX3VlK5LRL05B5MJF23oT9g80Td0= X-Google-Smtp-Source: ACHHUZ4obmWDmAiQxQ/zn/n5mNjS/Q3RI2CKC66Al3xxSicP1iTlES6qpDySqD8PNdTIYofvWAR+5vVam7gqffka81g= X-Received: by 2002:a05:6870:e8c4:b0:18e:2b7e:a846 with SMTP id r4-20020a056870e8c400b0018e2b7ea846mr10168618oan.50.1686206619856; Wed, 07 Jun 2023 23:43:39 -0700 (PDT) In-Reply-To: <83jzwe32pj.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:263105 Archived-At: --0000000000009833d905fd9892e5 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thanks for clarifying! > This part is exactly what I'm asking about: how do I "upload the file" > using EWW? Can you please show what I should type to do that? 0. In a terminal, do the following #+begin_src bash git clone https://git.sr.ht/~ozzloy/emacs-bug-63941 cd emacs-bug-63941 git checkout reproduce-bug-63941 ./server.py #+end_src 1. In an emacs window, do the following M-x eww localhost:8085 Once EWW opens localhost:8085, it will display the web page with a butto= n labeled "Browse". Click that button. 2. It will then ask you to choose a file. Choose the file =3D.../emacs-bug-63941/filename=3D in the same directory where =3Dserver= .py=3D is. 3. Hit to go to the "Submit" button, and hit to upload that file. > Where does one see this result? Is it in some Emacs buffer? In that > case, what is the name of that buffer? The output will be in the terminal where =3D./server.py=3D was run. I ran = it in an emacs shell buffer named =3D$emacs-bug-63941=3D. On Wed, Jun 7, 2023 at 11:09=E2=80=AFPM Eli Zaretskii wrote: > > From: ozzloy > > Date: Wed, 7 Jun 2023 19:48:29 -0700 > > Cc: 63941@debbugs.gnu.org > > > > 1. Then use EWW to browse to localhost:8085 and upload the file > =3Dfilename=3D. > > This part is exactly what I'm asking about: how do I "upload the file" > using EWW? Can you please show what I should type to do that? > > > Here's my result when doing that, first with EWW. > > #+begin_quote > > upload_content =3D b'file content', name =3D 'filename', size =3D 12 > > 127.0.0.1 - - [07/Jun/2023 18:55:03] "POST / HTTP/1.1" 200 - > > #+end_quote > > Where does one see this result? Is it in some Emacs buffer? In that > case, what is the name of that buffer? > > Thanks. > --0000000000009833d905fd9892e5 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Thanks for clarifying!

> Th= is part is exactly what I'm asking about: how do I "upload the fil= e"
> using EWW?=C2=A0 Can you please show what I should type to = do that?

0. In a terminal, do the following
#+begin_src bash
= =C2=A0 git clone http= s://git.sr.ht/~ozzloy/emacs-bug-63941
=C2=A0 cd emacs-bug-63941
= =C2=A0 git checkout reproduce-bug-63941
=C2=A0 ./server.py
#+end_src<= br>
1. In an emacs window, do the following

=C2=A0=C2=A0 M-x eww&= lt;Enter>
=C2=A0=C2=A0 localhost:8085<Enter>

=C2=A0=C2= =A0 Once EWW opens localhost:8085, it will display the web page with a butt= on
=C2=A0=C2=A0 labeled "Browse". Click that button.

2.= It will then ask you to choose a file. Choose the file
=C2=A0=C2=A0 =3D= .../emacs-bug-63941/filename=3D in the same directory where =3Dserver.py=3D= is.

3. Hit <tab> to go to the "Submit" button, and = hit <Enter> to upload that file.


> Where does one see t= his result?=C2=A0 Is it in some Emacs buffer?=C2=A0 In that
> case, w= hat is the name of that buffer?

The output will be in the terminal w= here =3D./server.py=3D was run.=C2=A0 I ran it in an
emacs shell buffer = named =3D$emacs-bug-63941=3D.


<= div dir=3D"ltr" class=3D"gmail_attr">On Wed, Jun 7, 2023 at 11:09=E2=80=AFP= M Eli Zaretskii <eliz@gnu.org> wr= ote:
> From: = ozzloy <ozzloy@gma= il.com>
> Date: Wed, 7 Jun 2023 19:48:29 -0700
> Cc: 63941@d= ebbugs.gnu.org
>
> 1. Then use EWW to browse to localhost:8085 and upload the file =3Dfil= ename=3D.

This part is exactly what I'm asking about: how do I "upload the f= ile"
using EWW?=C2=A0 Can you please show what I should type to do that?

> Here's my result when doing that, first with EWW.
> #+begin_quote
> upload_content =3D b'file content', name =3D 'filename'= ;, size =3D 12
> 127.0.0.1 - - [07/Jun/2023 18:55:03] "POST / HTTP/1.1" 200 -=
> #+end_quote

Where does one see this result?=C2=A0 Is it in some Emacs buffer?=C2=A0 In = that
case, what is the name of that buffer?

Thanks.
--0000000000009833d905fd9892e5--