Hi Konrad,

> mydata works perfectly. mydata2 fails to roduce any output.

try curl to see what is going wrong:

===

$ curl -i localhost:8080/@mydata
HTTP/1.0 200 OK
Content-Type: text/xml; charset=utf-8

<?xml version="1.0" encoding="utf-8"?>
<root>Hello Using XML</root>

===

$ curl -i localhost:8080/@mydata2
HTTP/1.1 200 OK
Server: PicoLisp
Date: Fri, 03 Oct 2008 12:29:56 GMT
Cache-Control: max-age=1
Content-Type: text/xml; charset=utf-8
Transfer-Encoding: chunked

curl: (56) Received problem 2 in the chunky parser

===

This function works:

(de mydata3 ()
   (httpHead "text/xml; charset=utf-8" 1)
   (ht:Out *Chunked
      (xml? T)
      (xml '(root NIL "Document 3"))))

$ curl -i localhost:8080/@mydata3
HTTP/1.1 200 OK
Server: PicoLisp
Date: Fri, 03 Oct 2008 12:34:47 GMT
Cache-Control: max-age=1
Content-Type: text/xml; charset=utf-8
Transfer-Encoding: chunked

<?xml version="1.0" encoding="utf-8"?>
<root>Document 3</root>

Cheers,

Tomas
-- 
UNSUBSCRIBE: mailto:[EMAIL PROTECTED]

Reply via email to