Hi,
Like they said in the comments, you need to set the "message" slot of the
response.

USING: http http.server threads furnace.actions ;
[ 8888 httpd ] in-thread
<action> [
 <response>
   200 >>code
   "text/plain" >>content-type
   "Hello World" >>body
   "Success" >>message
] >>display main-responder set-global

However, if you look at all the webapps shipped with factor (search for
webapps in the help browser), all of them are using Chloe templates. I think
you should take a look at these and see if Chloe templates are enough for
your needs. Chloe templates are supposed to be easier to use than http
responses.

Cheers,
Jon


On Wed, Jul 28, 2010 at 9:15 PM, Jörg Plewe <[email protected]> wrote:

> Hi List!
>
> I'm a complete Factor newbie (but black-belted Forth'er :) ) trying to make
> some steps following th blog
> http://www.bluishcoder.co.nz/2008/10/factor-web-framework-example.html
>
> One sample given there is:
>
> USING: http http.server threads furnace.actions ;
> [ 8888 httpd ] in-thread
> <action> [
>  <response>
>    200 >>code
>    "text/plain" >>content-type
>    "Hello World" >>body
> ] >>display main-responder set-global
>
>
> Compiles, httpd is present but:
>
> curl http://localhost:8888
> curl: (52) Empty reply from server
>
> Same when accessing it from the browser, empty response. Anybody can give
> me a helping hand?
>
> - Jörg
>
>
>
>
>
> ------------------------------------------------------------------------------
> The Palm PDK Hot Apps Program offers developers who use the
> Plug-In Development Kit to bring their C/C++ apps to Palm for a share
> of $1 Million in cash or HP Products. Visit us here for more details:
> http://p.sf.net/sfu/dev2dev-palm
> _______________________________________________
> Factor-talk mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/factor-talk
>
------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
Factor-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to