World: r3wp
[!Cheyenne] Discussions about the Cheyenne Web Server
older newer | first last |
Graham 2-Jun-2007 [908] | session/content/login?: yes response/redirect "/testapp/" |
btiffin 2-Jun-2007 [909x3] | I was just going to try that... I started up cheyenne with -vvv this time :) |
Ice weasel caught improper redirect... | |
Changed to response/redirect "/show.rsp" (out of the testapp dir, to www/show.rsp) No request variables, no session... | |
Dockimbel 2-Jun-2007 [912] | Brian: are you using a local proxy or special plugins for Ice weasel ? |
btiffin 2-Jun-2007 [913x2] | Nope...never with the plugins :) Well except flash. |
I know that this is going to be a DOH! when it starts working :) Something my eye isn't catching... | |
Dockimbel 2-Jun-2007 [915] | try with : http://localhost/manual.rsp(manualy starting the session, then see the /show.rsp) |
btiffin 2-Jun-2007 [916x2] | Tried a few times. Start Session, redisplays as Start Session... I've plopped a few help lines in the manual.rsp. |
I've enpro 'ed cheyenne.r same fail cases... | |
Will 2-Jun-2007 [918] | tryed on port 8080 or 80? do other website write cookie in your browser and you can see them? |
btiffin 2-Jun-2007 [919x2] | Yep. Lots of cookies. :) |
I'm going to config for port 80 and try from root.... | |
Will 2-Jun-2007 [921] | tray removing this line at the end of mod-rsp: insert tail out "; HttpOnly" |
Dockimbel 2-Jun-2007 [922] | I've only tested as root on my linux virtual box. |
btiffin 2-Jun-2007 [923x3] | Same fail cases from root...I'm going back to user mode. :) |
I'm about to try Will's last suggestion | |
I'm going to try some REBOL code I can execute to get out of 'browser' mysteries. raw-http type stuff, for tests...one minute (or two) | |
Will 2-Jun-2007 [926x2] | then I would say use any tool that permit you to see the header request/response, look closely what working websites sen in the response header for set-cookie change the mod-rsp to send the same apart from the RSPSID=xxx , eg remove path and expiration date |
sen=send | |
btiffin 2-Jun-2007 [928] | Cool. Thanks for the tip... |
Will 2-Jun-2007 [929] | the cookie must be set, otherwise maybe the browser has special rules for order of headers (shouldn't), on wine what version of window and IE did u try? |
btiffin 2-Jun-2007 [930] | Umm, I'll have to look at the wine and Ie versions...one sec |
Will 2-Jun-2007 [931] | did you try only on localhost ? can you add something like "127.0.0.1 domain.local" in your /etc/hosts file and in the http.cfg add a corresponding domain preference |
btiffin 2-Jun-2007 [932] | Sorry gentlemen, I'm being dragged away for a bit. Thanks for all the help. Should be back within the hour, but please don't waste any more time on my account. I'll pester people with more info shortly :) |
Will 2-Jun-2007 [933] | look at the headers first there must be a difference between what cheyenne and other webservers send, or maybe the problem is localhost, or the headers orders, in your case ;-) |
Dockimbel 2-Jun-2007 [934] | Good point Will, this looks like a domain mismatch between the browser and the server (that would explain why the session cookies are not sent back to the server). |
btiffin 2-Jun-2007 [935x3] | Hello again. Tried the following... dev [ root-dir %www/ default [%dev.rsp %dev.cgi %dev.html] ] added to httpd.cfg (dev is 192.168.1.102 in /etc/hosts) %dev.rsp is <html> <head> <title> Manual Sessions</title> </head> <body> <img src="logo.png"> <center> <h2>Manual session mode</h2> <% help session help request session/start help session response/redirect "show.rsp" %> <BR><BR>Your ID is : <%=session/id%><BR><BR> <a href="show.rsp">Test RSP script</a> </center> </body> </html> %raw.r is REBOL [] port: open tcp://dev:8080 insert port {GET / HTTP/1.1 Host: dev:8080 User-Agent: REBOL/Core Connection: close } result: copy port close port print result |
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 [956x2] | 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 :) | |
older newer | first last |