Hi Alex,
OK. So if 'ht:Pack' is undefined, then either the 'ht' library is not
found, or it somehow has the wrong contents.
What does
$ file /lib/ht
say? Is it perhaps incompatible to your 'picolisp' executable (e.g.
remained from some other build)?
/lib/ht: ELF 32-bit LSB shared object,
Hi Oskar,
> I builded the 64-bit version again, got a new ht file and 'ht:Pack'
> is defined. (The timestamp on the files showed me I builded the
> 32-bit on top of the 64-bit)
Fine. That explains it.
> And now the 32-bit version is showing 'ht:Pack' undefined :)
> Better not run them in one in
Hi Alex,
It turns out that my "default" script was producing the same HTML code
when I run it on c9.io (64-bit) as when I run it on localhost:8080/
(32-bit). E.g. the HTML on demo-project.jkleiser.c9.io/doc/ for the
ref.html link was ref.html, but in the
browser that was expanded to the doubl
Hi Jon,
> href="doc/ref.html">ref.html, but in the browser that was
> expanded to the double-doc
> "http://demo-project.jkleiser.c9.io/doc/doc/ref.html";. On c9.io I
> ...
> sure. Can you suggest a fix for my "default" script that will make
> it work in both contexts?
Hm, this sounds as if the br
Hi Alex,
On 23-05-13 12:22 , Alexander Burger wrote:
Hi Jon,
href="doc/ref.html">ref.html, but in the browser that was
expanded to the double-doc
"http://demo-project.jkleiser.c9.io/doc/doc/ref.html";. On c9.io I
...
sure. Can you suggest a fix for my "default" script that will make
it work in
Hi Jon,
> of doc/"). Is it possible for my "default" script to access any info
> about the HTTP request from my web server (web.l)?
There are some globals which are set by the server, like
*Url The requested URL
*Adr The client's address
*Post Boolean GET/PO
Hi Alex,
I tried *Host and *Referer from my script, but they were empty. *Adr,
however, gave me ":::127.6.26.129", and that can be useful. I think
I've also found a workaround for the "doc" / "doc/" effect on the URLs
in the list. I'll show it a little later ...
Thanks for the globals!
Hi Jon,
> I tried *Host and *Referer from my script, but they were empty.
Missing *Host is strange, I thought it should be sent by the user agent
(client).
*Referer is OK, it is only sent if you "come" to this server by clicking
on a link somewhere else.
> *Adr, however, gave me ":::127.6.
Hi,
Here is my improved 'default' script. It now works both on c9.io and on
localhost, and it handles both "doc" and "doc/". The logic that takes
care of all this, may not be rock solid and very clean, but at the
moment it's the best I can do. Here it is:
# This 'default' will be executed as
Hi Jon,
concerning the trouble of removing the double "/" from 'Path':
> (let ...
> Path (car (file))
> ...
> Th '(class . th) )
> (when (tail '("/" "/") (chop Path))
> (setq Path (pack (head -1 (chop Path# removing extra "/" at
> the end
This removes
Hi,
A quick question, what's the status of the *FPic variant on Linux? Is it
working?
If it works properly, I guess I could get it running on OSX as well when I find
some spare time...--
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe
11 matches
Mail list logo