webserver.r
[1/7] from: pablo_74::libero::it at: 14-Jul-2001 18:30
http://www.next-service.com
i had installed and configured webserver.r, but when i try to go on one of the
linsk of the index.html page, rebol give me the following error:
** Script Error: write-io expected buffer argument of type: any-string
** Where: send-page
** Near: write-io http-port data length? data
can u tell me what's the problem?
Paolo
[2/7] from: ptretter:charter at: 14-Jul-2001 11:52
I just tried running a webserv.r script that Cal Dixon created and it keeps
prompting me to download "/ from localhost" and I can't seem to keep it from
doing it. But the script looks nice and will handle cgi also.
Paul Tretter
[3/7] from: deadzaphod:flyingparty at: 14-Jul-2001 17:07
> I just tried running a webserv.r script that Cal Dixon created and it
keeps
> prompting me to download "/ from localhost" and I can't seem to keep it
from
> doing it. But the script looks nice and will handle cgi also.
Weird... I was able to duplicate the problem when using IE6, running the
server from /Core, and using a tiny, mal-formed index.html file, but once I
changed any of those things, it started working and now I can't reproduce
the problem at all any more.
Attached is the most current version of webserv.r, if you have an earlier
version, try this latest one.
Cal Dixon
-><-
-- Binary/unsupported file stripped by Listar --
-- Type: application/octet-stream
-- File: webserv.r
[4/7] from: chrismorency:videotron:ca at: 15-Jul-2001 1:04
Hi,
I contacted RT about this issue and I thought they would forward my feedback
to Cal, since I didn't know if Cal was still around (been busy on a rebol
project of my own, and haven't been reading the mailling list posts).
Anyway, here are the the issues regarding webserver.r and webserv.r posted
to RT feedback... the case related to your problem is in the second part
related to webserv.r
this was with version 0.9 of webserv.r if I remember correctly.
best,
Chris
REBOL Support
> webserver.r
> When the micro-web-server is running, you open a browser and enter the
address of the server, once you get the page, reload the page several time
by clicking on the reload button of the browser... but don't wait, click
really fast... now... it is suppose to crash... AFAIK here is the reason :
> excerpts from the code currently in the library :
> http-port: first wait listen-port
<<quoted lines omitted: 3>>
> ]
> now by repeating requests, the http-port has a request, but it is empty,
therefore when you do [ not empty? request: first http-port ], it crash
because the series is empty... hence cannot do first... but I may be
wrong... the not empty? only checks for request... but it has already crash
> webserv.r (contact Cal Dixon)
> default-type doesn't seem to be assign properly, so with browser like IE
5.5 the mime-type is not set properly and the browser ask to download the
html file instead of displaying it !!! adding the following in the
content-type list seems to do the trick but it's not consistent with the
default-type declaration which is then initiated for nothing :
[5/7] from: ptretter:charter at: 15-Jul-2001 7:31
I seem to have found the issue. Cal recently sent me the latest version of
his webserv.r script. I got it to work but had to modify the following code
to match this (see comment I added below):
--------- snip ---------------
translate-request-to-resource: func [ file /local file-path ] [
if (last file) = #"/" [ append file "index.html" ]
file-path: clean-path join wwwpath to-file next file
if none? find file-path clean-path wwwpath [
file-path: clean-path join wwwpath "index.html"
]
if dir? file-path [ append file-path "index.html" ] ; Cal had
/index.html before. I removed the "/" Seems to have fixed it with my
browser IE 5.
return file-path
]
----------------------------------
The IE5 browser automatically adds the trailing slash, which appears to be
the culprit. I believe the script was fine as I don't believe the Internet
Explorer browsers always did this until more recent versions. I got this to
work for me as I only intent to run a webserv for my own purposes and own
access - so this may not be a real solution if other browsers are utilized.
Cal script if very nice. Thanks Cal.
Paul Tretter
[6/7] from: pablo_74:libero:it at: 16-Jul-2001 16:51
salve Paul
On 15-Lug-01, you wrote:
> I seem to have found the issue. Cal recently sent me the latest version of
> his webserv.r script. I got it to work but had to modify the following code
> to match this (see comment I added below):
>
ehi ehi ehi
but where the solution for my problem?
where's the new version of webserver.r?
what happeneddddddddddddd ;P?
see u,
Paolo
[7/7] from: pablo_74:libero:it at: 19-Jul-2001 15:12
salve Cal
On 16-Lug-01, you wrote:
> here's my current version (without paul's latest fixes)...
>
AAARRRGGGHHH!!!! :(
i have just copied and configurated the webserver, start miami and rebol with
the script, but ibrowse and voayer tell me that the they're dont fpund the
page...
sigh!
all the webserver can make me sad? :P
where is the problem?
my config is wwwpath: %./next/ << there is my partition where i located my
index.html file
and the port is 8080
can tell me something?
Paolo
--
http://www.next-service.com/torres - Torres - Il Mondo dell'Ufficio
Notes
- Quoted lines have been omitted from some messages.
View the message alone to see the lines that have been omitted