r3wp [groups: 83 posts: 189283]
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

World: r3wp

[!Cheyenne] Discussions about the Cheyenne Web Server

btiffin
2-Jun-2007
[936x2]
Output is
>> do %raw.r
Script: "Untitled" (none)
HTTP/1.1 301 Moved Permanently
Server: Cheyenne/0.9.11
Content-Length: 1625
Content-Type: text/html
Connection: close
Location: show.rsp

Set-Cookie: RSPSID=IOERCVPFSDASSCXECGDFCTFG; expires=Sat, 02 Jun 
2007 19:54:16 GMT

<html>
<head>
    <title> Manual Sessions</title>
</head>
<body>
<img src="logo.png">
<center>
<h2>Manual session mode</h2>

SESSION is an object of value:
   content         none!     none
   timeout         none!     none
   events          none!     none
   id              none!     none
   active?         logic!    false
   init?           logic!    false
   add             function! [name [word!] value /local pos]
   remove          function! [name [word!]]
   exists?         function! [name [word!]]
   start           function! []
   reset           function! []
   end             function! []

REQUEST is an object of value:
   content         block!    length: 0
   headers         block!    length: 6
   method          word!     GET
   posted          none!     none
   client-ip       tuple!    192.168.1.102
   server-port     integer!  8080
   translated      file!     %www/dev.rsp

   parsed          object!   [headers status-line method url content 
   path targe...
   config          block!    length: 4
   web-app         none!     none
   query-string    function! [/local out]

SESSION is an object of value:
   content         block!    length: 0
   timeout         none!     none
   events          none!     none
   id              none!     none
   active?         logic!    false
   init?           logic!    false
   add             function! [name [word!] value /local pos]
   remove          function! [name [word!]]
   exists?         function! [name [word!]]
   start           function! []
   reset           function! []
   end             function! []


>>
Output from a Ice Weasel  http://dev:8080       - dev.rsp redirects 
to show.rsp...
Back

Timestamp: 2-Jun-2007/19:37:48-4:00

Request parameters :

    * HTTP Method: GET
    * HTTP Port: 8080
    * Client IP address: 192.168.1.102

Request headers :

    * Host : "dev"

    * User-Agent : {Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.3) 
    Gecko/20070310 Iceweasel/2.0.0.3 (Debian-2.0.0.3-1)}

    * Accept : {text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5}
    * Accept-Language : "en-us,en;q=0.5"
    * Accept-Encoding : "gzip,deflate"
    * Accept-Charset : "ISO-8859-1,utf-8;q=0.7,*;q=0.7"
    * Keep-Alive : "300"
    * Connection : "keep-alive"

Request variables :

    * No variable passed

Session :

    * No session
Graham
2-Jun-2007
[938]
I'm seeing some possibilities here ... for combining multiple tools 
to build web sites.  We have Max's Remark which can preprocess scripts 
which cuts down considerably on writing web pages, Cheyenne for serving 
them up, and Chris' QM to structure the site's logic/display.
btiffin
2-Jun-2007
[939]
Yep, I've been thinking the same thing...the 'killer app' that everyone 
talks about may

just be a melding of many REBOL apps in a 'killer development environment'.
Graham
2-Jun-2007
[940x3]
I'm been wondering how to incorporate Yahoo's YUI as well.
So messy all that javascript
perhaps use rsp to include the javascript dynamically
btiffin
2-Jun-2007
[943]
The 'mainstream' is to be avoided  :)  Swimming upstream is so much 
better for the soul.
Graham
2-Jun-2007
[944]
yeah .. but you know what happens to Canadian salmon ...
btiffin
2-Jun-2007
[945]
lol
Graham
2-Jun-2007
[946x5]
It would be nice if someone created a vmware linux image with vmware 
tools installed, and a rebol server environment.
Just downloaded Linux Mint 3.0 vmware image.  Installed rebol and 
cheyenne and it all works .. except it won't allow me to serve on 
port 80
so moved the server port to 8080
Is the redirect after logging in supposed to give you this page


Redirection Catched


Destination URL: /testapp

?
Or, should it take you to that page?
btiffin
2-Jun-2007
[951]
Turn off debug in httpd.cfg
Graham
2-Jun-2007
[952]
Ahh..
btiffin
2-Jun-2007
[953x2]
Something I learned today... :)
This is a pretty nice system Doc has given us...I still can't get 
sessions to work, but
I'm leaning to RSP for all future pages...
Graham
2-Jun-2007
[955]
have you tried another distro?
btiffin
2-Jun-2007
[956x3]
Nope.  I'm stubborn.  I'll be a Debian till the end...
I boot up ubuntu when I want to show live boot, but thats 'other 
peoples' computers :)
Debian is like the C of Linux.  All the good stuff starts with Debian...
Graham
2-Jun-2007
[959x2]
http://www.vmware.com/vmtn/appliances/directory/827
Debian based .. and sessions works for me.
btiffin
2-Jun-2007
[961x2]
Cool.  I'll spend some more time on this tomorrow.  I know that it'll 
be a simple little
thing that I'm not seeing.  :)
But I'm learning quite a bit tracking it down... so s'all good.
Graham
2-Jun-2007
[963]
I'm getting a few crashes using rsp with debug turned off :(
btiffin
2-Jun-2007
[964]
That's not cool sounding...
Graham
2-Jun-2007
[965]
#[object! [ code: 311 type: script id: invalid-path arg1: config 
arg2: #[none] arg3: #[none] near: [request/config: value] where: 
decode-msg ]]
Terry
2-Jun-2007
[966]
I think the whole asp, php, rsp model is done.  Embedding code into 
a standard page will be replaced by dynamically generated pages.
Graham
2-Jun-2007
[967]
only occuring when I include javascript with the include-file directive
Graham
3-Jun-2007
[968x2]
trolling again Terry?
## Error in [task-handler] : Make object! [
    code: 311
    type: 'script
    id: 'invalid-path
    arg1: 'config
    arg2: none
    arg3: none
    near: [request/config: value]
    where: 'decode-msg
] !
Terry
3-Jun-2007
[970x3]
Trolling?  tut tut
Nenad, which modules are required for basic operation?  I'd like 
to build a single module that intercepts every request.
I hope I didn't offend anybody by suggesting something better than 
pre-processing.
btiffin
3-Jun-2007
[973]
Terry;  I'm still a level 1 webmaster...anything beyond .html  is 
rocket science  :)
Terry
3-Jun-2007
[974]
Content, style and logic should be separate.
btiffin
3-Jun-2007
[975]
For me...get the page up.  :)  If .CSS worked as advertised I'd probably 
use it more...
If IE could display transparencies...
If if if...  :)
Terry
3-Jun-2007
[976]
IE does display transparancy
btiffin
3-Jun-2007
[977]
Poorly  :)
Terry
3-Jun-2007
[978]
Nenad, can you give a brief explanation on how module's first, normal, 
and last operate?
Graham
3-Jun-2007
[979x2]
This certainly seems to kill cheyenne

## Error in [task-handler] : Make object! [
    code: 311
    type: 'script
    id: 'invalid-path
    arg1: 'config
    arg2: none
    arg3: none
    near: [request/config: value]
    where: 'decode-msg
] !
all three rebol processes are running but not responding
Gabriele
3-Jun-2007
[981]
brian, did you try using wireshark (or plain old tcpdump) to see 
what the browser and the server are exchanging?
Will
3-Jun-2007
[982x3]
or tcpflow (small download) {sudo tcpflow -c -p -s -i lo0 src port 
80 or dst port 80}
or tcpick {sudo tcpick -i lo0 -C -p -S --separator -bP "port 80"}
tcpflow doesn't do ipv6 thought, I would go wireshark (new name for 
ethereal), it's a good learning tool 8-)
Dockimbel
3-Jun-2007
[985]
Graham: you crashed the RSP engine. Have you changed the meaning 
of the REQUEST word! ?