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

Maxim
8-Jun-2007
[1381x2]
web services usually use http, but don't serve out cgi nor web "pages"... 
so the return values are always processed.
has anyone succcessfully used OpenSSL, or is it still a "just use 
OpenSSL" suggestion...
Will
8-Jun-2007
[1383]
look at phase return codes in the doc, and search in this group for 
phase order execution
Terry
8-Jun-2007
[1384x3]
If by sucessful you mean Open
SSL... working along side of Cheyenne.. then yeah.. and sTunnel as 
well.
If you mean tying the OpenSSL libs directly via view/pro, then no.
Dockimbel
8-Jun-2007
[1387x2]
Graham: there's some experimental stuff about that in mod-internal, 
but still needs some improvement to be ready to encap a complete 
web site in the Cheyenne binary. But that's a planned feature, I'll 
provide better support for that in a week or 2.
Maxim, I'll provide this weekend a new module for easy Cheyenne embedding 
in third-party REBOL application. It should give you all the hooks 
you need to interface with your code and build your specialized server.
Graham
8-Jun-2007
[1389]
Cool.  Thanks.
Maxim
8-Jun-2007
[1390]
ok, will wait for that then  :-)
Maarten
9-Jun-2007
[1391]
Doc, how are the docs coming along?
Will
9-Jun-2007
[1392]
in the meantime me I help?
Graham
9-Jun-2007
[1393]
may I help ?
Will
9-Jun-2007
[1394]
;-)
Terry
9-Jun-2007
[1395]
May I help?  <- note there's a capital M and no space before the 
question mark.
Will
9-Jun-2007
[1396]
ok hopefully the qtask module grammar tha will make us "write like 
an 8th grader" will come soon! not really looking forward for the 
lie detector thought! ;-)
Graham
9-Jun-2007
[1397x4]
I'm thinking this is not a good error to get ..

Script: "Untitled" (none)
## Error in [task-handler] : Make object! [
    code: 316
    type: 'script
    id: 'no-memory
    arg1: none
    arg2: none
    arg3: none
    near: [insert tail series :value]
    where: 'append
] !
/
I think it happened when I left the trailing %> off a rsp page.
How about including a global url-encode function ?
Or, where is the appropriate place to define globals like this?
Dockimbel
9-Jun-2007
[1401x2]
Url-encode is already defined and available in RSP scripts ;-)
I've just fixed the error you've reported.
Graham
9-Jun-2007
[1403x11]
I've got a new problem
could be mea culpa
but login as guest / 1234
https://www.compkarori.co.nz/
Click on results
click on "O2 Sat" at the bottom there
Now the url looks okay at the top, but the request url is wrong
in the rsp debug
good to know about url-encode :)
also the values in the request content show up with double quotes
eg. {"value"}
Dockimbel
9-Jun-2007
[1414x3]
  in parameters value =
=> known bug
will be fixed in next release (should be tonight)
Graham
9-Jun-2007
[1417]
Ok, thanks
Dockimbel
9-Jun-2007
[1418]
double quotes, that's normal they are present in the URL : https://www.compkarori.co.nz/testapp/filteredhl7.rsp?rtype="O2Sat"
Graham
9-Jun-2007
[1419x2]
Is the bug database online Yet ?
Ok.  About the double quotes
Dockimbel
9-Jun-2007
[1421x3]
unfortunately, not yet, I'll try to put it online after the next 
Cheyenne release (so, it could be online tomorrow).
Quick patch for url-encoded value bug: 

1: in %HTTPd.r find the 'parse-request-line function
2: change the following line :

    parse/all dehex ctx/status-line: copy line [
to
    parse/all ctx/status-line: copy line [

3: change the following line :

    ctx/url: path: trim url
to    
    ctx/url: path: dehex trim url
Marteen: about docs, the RSP API document will be published tonight 
with the new release. The module API is still incomplete and the 
general Cheyenne main doc is still pending (scheduled to be released 
for 13/06).
Maarten
9-Jun-2007
[1424]
Sounds good!
amacleod
9-Jun-2007
[1425]
I'm having trouble getting Cheyenne to display web page with an absolute 
path. It works when Root-dir is set to  %/www/ but when I set it 
to the absolute path ...say %"C:/Rebserver/Cheyenne/www/" I can not 
get hte default page but I do get my test.php script to work.
MikeL
9-Jun-2007
[1426]
It works for me but you might want to try using the rebol format 
on the directory name %/c/rebserver/cheyenne/www/
amacleod
9-Jun-2007
[1427]
That works. Thanks Mikel
Graham
9-Jun-2007
[1428]
url-encoded patch working :)
Dockimbel
9-Jun-2007
[1429]
Cheyenne release v0.9.14 beta. Download at http://softinnov.org/tmp/cheyenne-r0914.zip

Changelog :

o response/forward improved : 

 - fully supports URLs as argument (can now forward to another virtual 
 host).
	- URL validity check (must have an explicit target).
	- protection against cycles.


o Command line option -p extended, now you can specify several listen 
ports separated
   by a comma (ex: -p 80,10443).


o New command line option -e : load and initialize Cheyenne without 
entering the

   event loop (needed for embedding Cheyenne in third party apps).


o Added a new experimental module: mod-embed. Purpose is to allow 
easy Cheyenne

   integration in third-party REBOL applications that require an embedded 
   web
   server. (Uncomment mod-embed in httpd.cfg file to activate it)


o Added %embed-demo.r file to show a sample of the mod-embed usage 
and API. 

o RSP: <% without %> eats all the memory. Fixed.

o URL-encoded request values were not parsed correctly. Fixed.


o RSP: fixed a typo in 'decode-params blocking the multipart data 
decoding and
   also a local word ('type) leaking in GC.

o UniServe's service startup refactored to be more flexible.



The new mod-embed is experimental. Please look at the %embed-demo.r 
file and send your feedbacks here.
Terry
9-Jun-2007
[1430]
the mad Doctor cranking it out ;)