* [9fans] simple cgi and POST for plan9?
@ 2015-01-22 17:31 Steve Simon
2015-01-22 17:37 ` Skip Tavakkolian
2015-01-23 2:20 ` Matthew Bonner
0 siblings, 2 replies; 6+ messages in thread
From: Steve Simon @ 2015-01-22 17:31 UTC (permalink / raw)
To: 9fans
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [9fans] simple cgi and POST for plan9?
2015-01-22 17:31 [9fans] simple cgi and POST for plan9? Steve Simon
@ 2015-01-22 17:37 ` Skip Tavakkolian
2015-01-22 17:45 ` Skip Tavakkolian
2015-01-23 2:20 ` Matthew Bonner
1 sibling, 1 reply; 6+ messages in thread
From: Skip Tavakkolian @ 2015-01-22 17:37 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
[-- Attachment #1: Type: text/plain, Size: 536 bytes --]
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 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
>
>
[-- Attachment #2: Type: text/html, Size: 856 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [9fans] simple cgi and POST for plan9?
2015-01-22 17:37 ` Skip Tavakkolian
@ 2015-01-22 17:45 ` Skip Tavakkolian
2015-01-22 17:53 ` Skip Tavakkolian
0 siblings, 1 reply; 6+ messages in thread
From: Skip Tavakkolian @ 2015-01-22 17:45 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
[-- Attachment #1: Type: text/plain, Size: 739 bytes --]
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 <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
>> already done that works...
>>
>> Thanks,
>>
>> -Steve
>>
>>
>
[-- Attachment #2: Type: text/html, Size: 1403 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [9fans] simple cgi and POST for plan9?
2015-01-22 17:45 ` Skip Tavakkolian
@ 2015-01-22 17:53 ` Skip Tavakkolian
2015-01-23 11:20 ` Steve Simon
0 siblings, 1 reply; 6+ messages in thread
From: Skip Tavakkolian @ 2015-01-22 17:53 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
[-- Attachment #1: Type: text/plain, Size: 1311 bytes --]
there's also magic/save (save.c). put something like this inside <body> tag.
<form action="http://www.example.com/magic/save/foo"
enctype="multipart/form-data" method="post">
<p>
Type some text (if you like):<br>
<input type="text" name="textline" size="30">
</p>
<p>
Please specify a file, or a set of files:<br>
<input type="file" name="datafile" size="40">
</p>
<div>
<input type="submit" value="Send">
</div>
</form>
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 <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
>>> already done that works...
>>>
>>> Thanks,
>>>
>>> -Steve
>>>
>>>
>>
>
[-- Attachment #2: Type: text/html, Size: 3283 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [9fans] simple cgi and POST for plan9?
2015-01-22 17:31 [9fans] simple cgi and POST for plan9? Steve Simon
2015-01-22 17:37 ` Skip Tavakkolian
@ 2015-01-23 2:20 ` Matthew Bonner
1 sibling, 0 replies; 6+ messages in thread
From: Matthew Bonner @ 2015-01-23 2:20 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
[-- Attachment #1: Type: text/plain, Size: 279 bytes --]
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
[-- Attachment #2: Type: text/html, Size: 387 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2015-01-23 11:20 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-22 17:31 [9fans] simple cgi and POST for plan9? Steve Simon
2015-01-22 17:37 ` Skip Tavakkolian
2015-01-22 17:45 ` Skip Tavakkolian
2015-01-22 17:53 ` Skip Tavakkolian
2015-01-23 11:20 ` Steve Simon
2015-01-23 2:20 ` Matthew Bonner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).