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:52:31 -0700 Message-ID: References: <837csf4fp8.fsf@gnu.org> <83jzwe32pj.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000004705db05fd98b347" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21044"; 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:54:21 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 1q79XJ-0005Iw-Mm for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 08 Jun 2023 08:54:21 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q79X1-0005Dt-9c; Thu, 08 Jun 2023 02:54:03 -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 1q79X0-0005DP-5d for bug-gnu-emacs@gnu.org; Thu, 08 Jun 2023 02:54: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 1q79Wz-0001lJ-T6 for bug-gnu-emacs@gnu.org; Thu, 08 Jun 2023 02:54:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q79Wz-0003Ic-P8 for bug-gnu-emacs@gnu.org; Thu, 08 Jun 2023 02:54:01 -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:54: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.168620719212540 (code B ref 63941); Thu, 08 Jun 2023 06:54:01 +0000 Original-Received: (at 63941) by debbugs.gnu.org; 8 Jun 2023 06:53:12 +0000 Original-Received: from localhost ([127.0.0.1]:55518 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q79Vx-0003FL-On for submit@debbugs.gnu.org; Thu, 08 Jun 2023 02:53:12 -0400 Original-Received: from mail-oa1-f47.google.com ([209.85.160.47]:50557) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q79Vv-0003F3-1H for 63941@debbugs.gnu.org; Thu, 08 Jun 2023 02:52:57 -0400 Original-Received: by mail-oa1-f47.google.com with SMTP id 586e51a60fabf-19fa4346498so231747fac.1 for <63941@debbugs.gnu.org>; Wed, 07 Jun 2023 23:52:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686207168; x=1688799168; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=EwPeRmDrs5lg/bYNNfCLmpTbpC63mh0gfGiXG2qf66M=; b=ba9nq9XMJSiYrg7K8/V4JW9QuvZsTJAeoSqoFnc+hhCB7IOu9jUjD13OkHZqsjZjx7 XMdtVzo/PQGl4fY6CAE9WSwomjOvyySVIm+yYpg7J818hD5m1ZVKJ0C4L8vDvJGzot/b D5jqSvYBhWLR1xOXC9/XG0B9V/crUCLOm2LHm2LFT67nr61QIBdvnXHEPWpOmPWk1rEm YG0aFJNjylvZRlUOjhPQ6CFQhkZObC4JIRj4QPC5z8frcx7AktpHrZsKhrZUBbSyua9r yYe505unmHh2puvJUdwTxWfkt8ieYjK26yezetmJ8UWkwiqtux2iv1l4VZxcAJmbydno gOCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686207168; x=1688799168; 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=EwPeRmDrs5lg/bYNNfCLmpTbpC63mh0gfGiXG2qf66M=; b=IYsegJY4mnCx2hEXnGhbR94nIuRX4SlHy3Dx7RavvcRi08mLm/nKaFsjrCyOkoMnFf G4C2mcIU2f7X9htwsfMEYC0AWMFK2DUdTuiE6JTPKd6hF/Tl7WGcfOTsWdkgAjyNNP/W zkr1+wftYmclOWtPwg330bbNrXtRvi1iHMF94eJre6zUQh028WeF6psbwDgL6pf3lJZi JrpSG6OeiTKFKw+VD4ye4aV1qpXXw/xeY0uF55rZP2rm3vWbYWa5KA0BXqyNYoLs9RF5 twEtO5u1pzh4OFHbV2DltvrO19Oa6+nQkXNjeT/F1U6qu69SVawzNrSvofJoU3J6NZvC 0Hmw== X-Gm-Message-State: AC+VfDwAlmnQXE5ublxyn2gIjeYaeztYfE10+HEMqWRcSDGueVaDfY5P lfE9U1p5u0MRxsFIPL2V5GL6Dzs5Xsspe0CzJtpZeSAf X-Google-Smtp-Source: ACHHUZ4HB8QV1N7gkmf+fCz91RlKDCp4yCPkrCXgIUXJO+fsDNyFM1o05KrbhZuWaYKdafGyNmlhprYnLM3N2TBasXk= X-Received: by 2002:a05:6870:d342:b0:1a2:fd06:9f93 with SMTP id h2-20020a056870d34200b001a2fd069f93mr4623439oag.7.1686207168184; Wed, 07 Jun 2023 23:52:48 -0700 (PDT) In-Reply-To: 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:263106 Archived-At: --0000000000004705db05fd98b347 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Quick fix. In the last email, I said > Once EWW opens localhost:8085, it will display the web page with a > button labeled "Browse". Click that button. My bad. Clicking does not work for me. What I actually do is put the cursor on the button and hit . Then it will bring up the file On Wed, Jun 7, 2023 at 11:43=E2=80=AFPM ozzloy wrote: > > 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 > button > 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 =3Dserv= er.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 ra= n 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 wrot= e: > >> > 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. >> > --0000000000004705db05fd98b347 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Quick fix.=C2=A0 In the last email, I said
>=C2=A0 O= nce EWW opens localhost:8085, it will display the web page with a
>= =C2=A0 button labeled "Browse". Click that button.

My bad.= =C2=A0 Clicking does not work for me.=C2=A0 What I actually do is put thecursor on the button and hit <Enter>.=C2=A0 Then it will bring up t= he file


On Wed, Jun 7, 2023 at 11:43=E2=80=AFPM ozzloy <ozzloy@gmail.com> wrote:

Thanks for clarifying!

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

0. In a termi= nal, do the following
#+begin_src bash
=C2=A0 git clone https://git.sr.h= t/~ozzloy/emacs-bug-63941
=C2=A0 cd emacs-bug-63941
=C2=A0 git ch= eckout reproduce-bug-63941
=C2=A0 ./server.py
#+end_src

1. In = an emacs window, do the following

=C2=A0=C2=A0 M-x eww<Enter><= br>=C2=A0=C2=A0 localhost:8085<Enter>

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

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

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


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

The output will be in the terminal where =3D./serv= er.py=3D was run.=C2=A0 I ran it in an
emacs shell buffer named =3D$emac= s-bug-63941=3D.


On Wed, Jun 7, 2023 at 11:09=E2=80=AFPM Eli Zaretski= i <eliz@gnu.org>= ; wrote:
> Fr= om: ozzloy <ozzloy= @gmail.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.
--0000000000004705db05fd98b347--