From nobody Mon Mar 06 16:37:49 2023 X-Original-To: freebsd-mips@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4PVklT1mqdz3w6F3 for ; Mon, 6 Mar 2023 16:37:57 +0000 (UTC) (envelope-from zlei@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PVklT1JbHz40TY; Mon, 6 Mar 2023 16:37:57 +0000 (UTC) (envelope-from zlei@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1678120677; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=l9CXy6RIgqTZ1KqT/yAigOhaJqvc8tM3XsQn+iIUQ7I=; b=KP8a2gcWfHQLfrxjDg6/+gTA8SChksieoiFYGFcIMXhluWa9ApZz6sjlLXGxXAva7aMnGx RZBX6vt+yTP4YD9PTxAUlRgnD8vIKfxxKpS93O/eg1fSzbWy4f6H7rArzpVphbCE7NMSao pNGYmuQhrMLjtoDceuwLdNVG+pXQ8rW23jd6gHYoXMt1inMOOmur5/NKccAL5LWnkrf2fW xVg4dojWQLB7wfz0il+Bayhz8coNrcTqmMoA/paXciwbEYGs52HqAa7Kw3u0Z6ERuUKSD6 iEiSC7j1v7ZTawUWGGOQUj5ziXdKVnat1KQJpcph70RPchfEdK7gIq+16MViNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1678120677; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=l9CXy6RIgqTZ1KqT/yAigOhaJqvc8tM3XsQn+iIUQ7I=; b=hobka89DXhC7IZi3I6+DzQlumx4YAnZTkRbXX6KJWwgp+8qHMkEAr4zLcZUCY93rkC7Qdd 8M9v2YKcs43+KJeKjLr00Zu19oRyym618yQk58VrooViQctPobpg7y/jcjVRBeW7+o558X JGyFGFs8RsBRzgED9GgkX708lOD9a2/lYAOnJ+zOIZ2j15dZ5dIgqiyixHC+JMVBBfwkV1 jKmUr7PTzgucAO4Oq06Sk5mKTS2MNX16fBNtC8cyXxCIlIdV7k0kPaFTXQH6lhSohmH7+C nEnXtfexEtmF/f9+k1OJuQAB6d1Vfg+HLZ87WK1FbwL6GY530/8Ev/6/DOzAeg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1678120677; a=rsa-sha256; cv=none; b=xQFNKVjX29hfDcdmVXqI/TPXPl5XyWj5M+gmt1zvps+4oKyzKvJU/brLOIkEizMbx1jovt ZykJE9VQ8bDNTq5AvoMIBj8pnoprkAVuclKCwskd3yvilg9VdJmzdXAbRx5bwuokgL5Lmm o7mw8e4jS/6ruq4pFaCSUgnQWQkm03l2hQJFfYpaYy512gCGXZMeihvXqHra8/Gy7iBx49 HcplO3BSet3p7DEMEWIpBnnQyruotNlWpcsWT7Ps1KS7+7OEKzwnTAtycaSGVpn2isN/az 32EgWNdfg0MXcSSQ/CKUoNAjaHxx6DhBi0Thcn1bgjOaveG+NF6kyxUm+MIv1g== Received: from smtpclient.apple (ns1.oxydns.net [45.32.91.63]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) (Authenticated sender: zlei/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4PVklS1TQvz19K5; Mon, 6 Mar 2023 16:37:55 +0000 (UTC) (envelope-from zlei@FreeBSD.org) Content-Type: text/plain; charset=us-ascii List-Id: Porting FreeBSD to MIPS List-Archive: https://lists.freebsd.org/archives/freebsd-mips List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-mips@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.2\)) Subject: Re: post not work mini_httpd From: Zhenlei Huang In-Reply-To: <507818037.1743060.1677364160616.JavaMail.yahoo@mail.yahoo.co.jp> Date: Tue, 7 Mar 2023 00:37:49 +0800 Cc: "freebsd-mips@freebsd.org" Content-Transfer-Encoding: quoted-printable Message-Id: <7AC0E596-0417-45AC-8531-0B8A8AD2B92A@FreeBSD.org> References: <507818037.1743060.1677364160616.JavaMail.yahoo.ref@mail.yahoo.co.jp> <507818037.1743060.1677364160616.JavaMail.yahoo@mail.yahoo.co.jp> To: Mori Hiroki X-Mailer: Apple Mail (2.3696.120.41.1.2) X-ThisMailContainsUnwantedMimeParts: N Hi, It seems mini_httpd is not in base. Is it in ports ? If yes I think you should contact the author or maintainer for support.=20= > On Feb 26, 2023, at 6:29 AM, Mori Hiroki = wrote: >=20 > Hi >=20 > I use mini_httpd on RT3050. >=20 > I try this cgi. >=20 > #!/bin/sh = =20 >=20 > echo "Content-Type: text/html" > echo "" > echo "OK" >=20 > if [ "${REQUEST_METHOD}" =3D "POST" ]; then > echo `cat` > /tmp/xxx > fi >=20 > This cgi work on GET but not work on POST. > Firefox say connection reset. >=20 > I seem FreeBSD/amd64 is same. >=20 > This is patch. >=20 > --- mini_httpd.c.org 2018-10-27 04:47:50.000000000 +0900 > +++ mini_httpd.c 2023-02-26 07:25:15.504936000 +0900 > @@ -1842,7 +1842,8 @@ > /* Interposer process. */ > (void) close( p[0] ); > cgi_interpose_input( p[1] ); > - finish_request( 0 ); > +// finish_request( 0 ); > + exit ( 0 ); > } > (void) close( p[1] ); > if ( p[0] !=3D STDIN_FILENO ) >=20 > Work fine both. >=20 > Regards.. >=20 > Hiroki Mori >=20 >=20 Best regards, Zhenlei