From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: From: "Steve Simon" Date: Thu, 22 Jan 2015 17:31:08 +0000 To: 9fans@9fans.net MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: [9fans] simple cgi and POST for plan9? Topicbox-Message-UUID: 3b17f9a4-ead9-11e9-9d60-3106f5b1d025 anyone have an example of doing a simple web page with a POST form, I want somthing like the wiki, but just a single page of text that can be edited in a form using a POST method. on plan9 of course. I know I am being lazy and I just need to RTFM but if somone has a recipie already done that works... Thanks, -Steve From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: Date: Thu, 22 Jan 2015 09:37:07 -0800 Message-ID: From: Skip Tavakkolian To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: multipart/alternative; boundary=089e0160b506f6a737050d411e82 Subject: Re: [9fans] simple cgi and POST for plan9? Topicbox-Message-UUID: 3b21371c-ead9-11e9-9d60-3106f5b1d025 --089e0160b506f6a737050d411e82 Content-Type: text/plain; charset=UTF-8 take a look at pegasus and if you're using plan9/386 doing it with a little Go app is very easy. On Thu, Jan 22, 2015 at 9:31 AM, Steve Simon wrote: > anyone have an example of doing a simple web page with a POST form, > I want somthing like the wiki, but just a single page of text > that can be edited in a form using a POST method. > > on plan9 of course. > > I know I am being lazy and I just need to RTFM but if somone has a recipie > already done that works... > > Thanks, > > -Steve > > --089e0160b506f6a737050d411e82 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
take a look at pegasus and if you're using plan9/386 d= oing it with a little Go app is very easy.
=
On Thu, Jan 22, 2015 at 9:31 AM, Steve Simon= <steve@quintile.net> wrote:
anyone have an example of doing a simple web page with a POST form,
I want somthing like the wiki, but just a single page of text
that can be edited in a form using a POST method.

on plan9 of course.

I know I am being lazy and I just need to RTFM but if somone has a recipie<= br> already done that works...

Thanks,

-Steve


--089e0160b506f6a737050d411e82-- From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: Date: Thu, 22 Jan 2015 09:45:12 -0800 Message-ID: From: Skip Tavakkolian To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: multipart/alternative; boundary=089e0118295ee59348050d413bf0 Subject: Re: [9fans] simple cgi and POST for plan9? Topicbox-Message-UUID: 3b26ebe4-ead9-11e9-9d60-3106f5b1d025 --089e0118295ee59348050d413bf0 Content-Type: text/plain; charset=UTF-8 there's also /sys/src/cmd/ip/httpd/wikipost.c are you looking for the html page? On Thu, Jan 22, 2015 at 9:37 AM, Skip Tavakkolian < skip.tavakkolian@gmail.com> wrote: > take a look at pegasus and if you're using plan9/386 doing it with a > little Go app is very easy. > > On Thu, Jan 22, 2015 at 9:31 AM, Steve Simon wrote: > >> anyone have an example of doing a simple web page with a POST form, >> I want somthing like the wiki, but just a single page of text >> that can be edited in a form using a POST method. >> >> on plan9 of course. >> >> I know I am being lazy and I just need to RTFM but if somone has a recipie >> already done that works... >> >> Thanks, >> >> -Steve >> >> > --089e0118295ee59348050d413bf0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
there's also /sys/src/cmd/ip/httpd/wikipost.c

=
are you looking for the html page?

On Thu, Jan 22, 2015 at 9:37 AM, Sk= ip Tavakkolian <skip.tavakkolian@gmail.com> wrote:<= br>
take a look at pegasus a= nd if you're using plan9/386 doing it with a little Go app is very easy= .
<= br>
On Thu, Jan 22, 2015 at 9:31 AM, Steve Simon = <steve@quintile.net> wrote:
anyone have an example of doing a simple web page with a POST form,
I want somthing like the wiki, but just a single page of text
that can be edited in a form using a POST method.

on plan9 of course.

I know I am being lazy and I just need to RTFM but if somone has a recipie<= br> already done that works...

Thanks,

-Steve



--089e0118295ee59348050d413bf0-- From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: Date: Thu, 22 Jan 2015 09:53:14 -0800 Message-ID: From: Skip Tavakkolian To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: multipart/alternative; boundary=001a113a6f40a3db5e050d41589b Subject: Re: [9fans] simple cgi and POST for plan9? Topicbox-Message-UUID: 3b2caf2a-ead9-11e9-9d60-3106f5b1d025 --001a113a6f40a3db5e050d41589b Content-Type: text/plain; charset=UTF-8 there's also magic/save (save.c). put something like this inside tag.

Type some text (if you like):

Please specify a file, or a set of files:

On Thu, Jan 22, 2015 at 9:45 AM, Skip Tavakkolian < skip.tavakkolian@gmail.com> wrote: > there's also /sys/src/cmd/ip/httpd/wikipost.c > > are you looking for the html page? > > On Thu, Jan 22, 2015 at 9:37 AM, Skip Tavakkolian < > skip.tavakkolian@gmail.com> wrote: > >> take a look at pegasus and if you're using plan9/386 doing it with a >> little Go app is very easy. >> >> On Thu, Jan 22, 2015 at 9:31 AM, Steve Simon wrote: >> >>> anyone have an example of doing a simple web page with a POST form, >>> I want somthing like the wiki, but just a single page of text >>> that can be edited in a form using a POST method. >>> >>> on plan9 of course. >>> >>> I know I am being lazy and I just need to RTFM but if somone has a >>> recipie >>> already done that works... >>> >>> Thanks, >>> >>> -Steve >>> >>> >> > --001a113a6f40a3db5e050d41589b Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
there's also magic/save (save.c). put something like t= his inside <body> tag.

<form action=3D"http://www.example.com/magic/save/foo"= enctype=3D"multipart/form-data" method=3D"post">
<p>
=
Type some text (i= f you like):<br>
<input type=3D"text" name=3D"textline" si= ze=3D"30">
</p>
= <p>
= Please specify a file, or a set of files:<br>
<input type=3D"file&= quot; name=3D"datafile" size=3D"40">
</p>
<div>
<input type=3D"submit&= quot; value=3D"Send">
</div>
</form>


On Thu, Jan 22, 2015 at 9= :45 AM, Skip Tavakkolian <skip.tavakkolian@gmail.com> wrote:
there's al= so /sys/src/cmd/ip/httpd/wikipost.c

are you looking for = the html page?

On Thu, Jan 22, 2015 at 9:= 37 AM, Skip Tavakkolian <skip.tavakkolian@gmail.com> wrote:
take a look at = pegasus and if you're using plan9/386 doing it with a little Go app is = very easy.

On Thu, Jan 22, 2015 at 9:31 AM, Steve Simon <= ;steve@quintile.net= > wrote:
anyone have an exa= mple of doing a simple web page with a POST form,
I want somthing like the wiki, but just a single page of text
that can be edited in a form using a POST method.

on plan9 of course.

I know I am being lazy and I just need to RTFM but if somone has a recipie<= br> already done that works...

Thanks,

-Steve




--001a113a6f40a3db5e050d41589b-- From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: Date: Fri, 23 Jan 2015 13:20:20 +1100 Message-ID: From: Matthew Bonner To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: multipart/alternative; boundary=047d7bdca2982d4533050d486e8e Subject: Re: [9fans] simple cgi and POST for plan9? Topicbox-Message-UUID: 3b39ea28-ead9-11e9-9d60-3106f5b1d025 --047d7bdca2982d4533050d486e8e Content-Type: text/plain; charset=UTF-8 Hi Steve, I've recently been experimenting with web / CGI stuff on 9atom myself. No wiki examples I'm afraid but I'd suggest investigating aux/listen - easy to patch in rc scripts or binaries to serve and receive content. Cheers, Matthew sent from mobile device --047d7bdca2982d4533050d486e8e Content-Type: text/html; charset=UTF-8

Hi Steve,

I've recently been experimenting with web / CGI stuff on 9atom myself.

No wiki examples I'm afraid but I'd suggest investigating aux/listen - easy to patch in rc scripts or binaries to serve and receive content.

Cheers,

Matthew

sent from mobile device

--047d7bdca2982d4533050d486e8e-- From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <43e4ed4cf1f9f653269972bf7a1b6f7f@quintile.net> From: "Steve Simon" Date: Fri, 23 Jan 2015 11:20:05 +0000 To: 9fans@9fans.net In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] simple cgi and POST for plan9? Topicbox-Message-UUID: 3b449acc-ead9-11e9-9d60-3106f5b1d025 Thanks Skip, thats great. -Steve