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

Dockimbel
13-Jul-2007
[2004x2]
I've summarized the new way to configure the PHP interface in Cheyenne 
here : http://softinnov.org/cheyenne/blog.cgi?view=0011
Pekr, the new PHP interface can now work with relative paths, so 
you can now put Cheyenne and PHP in your USB stick and spread it 
everywhere ;-). Did you solve your issue regarding php process not 
responding on Vista ?
Gabriele
14-Jul-2007
[2006]
Doc: remember the Detective version of async-call also works on linux, 
freebsd, solaris, and mac os x. :) i guess we should make a sync 
version of that for normal human beings to use ;)
Dockimbel
14-Jul-2007
[2007x2]
Right Gabriele, I forgot that one !
Is Detective sources available somewhere, I can't find the download 
link ?
Gabriele
14-Jul-2007
[2009x4]
async-call is here: http://www.colellachiara.com/soft/async-call-definition.r
license says GPL however i think we agreed it is ok to switch it 
to BSD.
(i'll need to update that.)
detective source should be somewhere on surfnet site... but i probably 
should put a zip on my site too.
Dockimbel
14-Jul-2007
[2013]
Thanks !
Graham
14-Jul-2007
[2014x5]
Has anyone got a public Cheyenne server running?  With show.cgi available?
This is with the latest beta ...

>> page: read http://127.0.0.1/show.cgi
URL Parse: none none 127.0.0.1 none none show.cgi
Net-log: ["Opening" "tcp" "for" "HTTP"]
connecting to: 127.0.0.1
Net-log: {GET /show.cgi HTTP/1.0
Accept: */*
Connection: close
User-Agent: REBOL View 1.3.2.3.1
Host: 127.0.0.1
}
Net-log: "HTTP/1.1 200 OK"
Net-log: ["low level read of " 2048 "bytes"]
Net-log: ["low level read of " 2048 "bytes"]

== {<HTML><BODY><FONT FACE='ARIAL' SIZE='-1'><a href="/">Back</a><br><br>
<B>Script path :</B> /E/cheyenne916/Cheyenne/www/ <BR><BR...

>> page: read/custom http://127.0.0.1/show.cgireduce ['post join 
"content=" url-encode content ]
URL Parse: none none 127.0.0.1 none none show.cgi
Net-log: ["Opening" "tcp" "for" "HTTP"]
connecting to: 127.0.0.1
Net-log: {POST /show.cgi HTTP/1.0
Accept: */*
Connection: close
User-Agent: REBOL View 1.3.2.3.1
Host: 127.0.0.1
Referer: http://127.0.0.1/show.cgi
Content-Type: application/x-www-form-urlencoded
Content-Length: 147479
}
Net-log: none

** User Error: Error.  Target url: http://127.0.0.1/show.cgicould 
not be retrieved.  Server response: none

** Near: page: read/custom http://127.0.0.1/show.cgireduce ['post 
join "content=" url-encode content]
>>
and from Cheyenne


## Error in [uniserve] : On-received call failed with error: make 
object! [
    code: 305
    type: 'script
    id: 'invalid-arg
    arg1: none
    arg2: none
    arg3: none
    near: [parse/all data [
            some [
                s: to bound e: (
                    if e <> s [
                        either wrt? [
                            insert/part tmp/port s skip e -2
                        ] [
                            insert/part tail req/in/content s e
                        ]
                    ]
                )
                s: bound [
                    "--" to end s: break
                    | thru crlfcrlf e: (
                        insert/part tail req/in/content s e

                        if wrt?: to logic! find/part s "Content-Type" e [

                            append tmp/files name: make-tmp-filename

                            repend req/in/content [mold name crlf]
                            if tmp/port [close tmp/port]
                            tmp/port: open/mode name [
                                binary direct no-wait write new
                            ]
                        ]
                    )
                ]
            ]
        ]
        tmp/buffer: either
    ]
    where: 'process-content
] !
Posted bug to curecode
There's a magic number here 

 page: read/custom http://127.0.0.1/show.cgireduce ['post join "content=" 
 copy/part url-encode content 65528 ]
works
but 

 page: read/custom http://127.0.0.1/show.cgireduce ['post join "content=" 
 copy/part url-encode content 65529 ]
fails
Dockimbel
14-Jul-2007
[2019]
Thanks for the detailed report Graham, this bug will be fixed in 
the next release.
Graham
14-Jul-2007
[2020]
release today?? :)
Dockimbel
14-Jul-2007
[2021]
I've planned to make the next release in a few days, mainly bugfixes 
and minor new features. If you can't wait, I can send you a quick 
fix now ?
Graham
14-Jul-2007
[2022x2]
please :)
I only have time in the weekends to do any development :(
Dockimbel
14-Jul-2007
[2024]
Are you using REBOL CGI and RSP scripts in the same Cheyenne server 
instance ?
Graham
14-Jul-2007
[2025x3]
No.  I was just using the cgi to see why my rsp script was failing.
ie.to determine why nothing was being returned by my rsp script.
ethereal showed I was posting all the data .. just no server response
Dockimbel
14-Jul-2007
[2028]
Does your RSP script use my MySQL driver ? I've fixed a bug related 
to that today : http://softinnov.org:8000/curecode/ticket.rsp?id=10031
Graham
14-Jul-2007
[2029x2]
No.
it's a script that takes a submitted postscript file and returns 
a pdf
Dockimbel
14-Jul-2007
[2031x2]
Ok, give me a few minutes and I'll send you a fix by email.
There's an immediate fix you could make in your %HTTPd.r file : find 
the following line : if stop-at > 65536 [
Graham
14-Jul-2007
[2033]
why the limit?
Dockimbel
14-Jul-2007
[2034x2]
and either put a much higher value or replace it by : if false [
It's not a limit, it's a trigger that switch to the file disk mode 
instead of receiving all the POSTed data in memory
Graham
14-Jul-2007
[2036]
Ok.
Dockimbel
14-Jul-2007
[2037x2]
It should be controled by a config file option, but I didn't had 
time yet to implement it.
Btw, for debugging your RSP scripts, you can also rely on the 'rsp-log 
function which is a wrapper to 'probe that will output values in 
console instead of the response buffer.
Graham
14-Jul-2007
[2039x2]
Ok.  Good to know.
working now :)
Dockimbel
14-Jul-2007
[2041]
Good to hear, I can now go to sleep ;-)
Graham
14-Jul-2007
[2042]
hehe
Pekr
17-Jul-2007
[2043]
Doc - still no luck - which version is last? 016? It returns - "No 
input file specified" for test.php .... on Vista, will try with XP 
at home ...
Graham
17-Jul-2007
[2044x2]
Why don't you load up vmware server??
I'm finding vista very difficult to use as well.
Pekr
17-Jul-2007
[2046x3]
Graham - because it sounds like taking a hammer on a single issue 
...
I want issue to be resolved, not workarounded. I don't need Cheyenned 
so badly now, that I could not set-up apache for eg. It would be 
much faster than wmvare ...
I would like to help debug, what the trouble is, just don't know 
why. Maybe I will set-up WireShark (Ethereal) during my vacation 
next week ...
Graham
17-Jul-2007
[2049]
If you can confirm that it works for you under XP, then you can try 
Vista.  Must surely make it easier to get it working first before 
trying to debug it
Pekr
20-Jul-2007
[2050]
Doc - so I just tried on my WinXP, and I have similar problem as 
on Vista. First time test.php is requested, it displays the table. 
Trying to reload page gives me "No input file specified".
[unknown: 9]
20-Jul-2007
[2051]
We all spend tooooooooooooooo much time with these types of bugs...such 
a shame....
btiffin
20-Jul-2007
[2052]
Reichart;   In defense of Doc et al, Cheyenne is still a Beta, someone's 
gotta spend the time  :)  might as well be us.   And Vista...XP, 
well it's MS and "good enough is good enough" seems to rule the day 
in Redmond.


And yes it is a shame.  If motorola had won an early lead in the 
chip wars, the 68K flat memory model would have saved an untold millions 
(billions?) of man hours for the PC industry.  If MS hadn't been 
allowed to overhype Chicago (for what, 3 years?) and then FUD  OS/2 
to death, we'd all have object oriented desktops that we could talk 
to by now. But we plug ahead, mostly oblivious.  :)  Sorry, this 
should have been in Vent, so I'll end with

Go Doc Go
Pekr
20-Jul-2007
[2053]
Reichart - I am ok with testing :-) i don't need Cheyenne right now, 
but I want to help it get running. And later on, I will have my coding 
environment with me. Now someone suggest how to make mySQL non installable 
distribution, which would start db server withCheyenne start. Being 
able to do that, we would have something really cool! :-)