put-url Segfault

Started by Dmi, June 05, 2006, 06:40:16 AM

Previous topic - Next topic

Dmi

Initially, I got this with real apache and put.cgi from newLisp manual.

The following - is the protoclo recreation, modelled with netcat.


dmi@stone$ newlisp
newLISP v.8.8.8 on linux, execute 'newlisp -h' for more info.

> (put-url "http://www.test.ru:8080/in/test1" "test-1n")
Segmentation fault


The other side protocol is following:
fortuna:sites-available# nc -l -p 8080
PUT /in/test1 HTTP/1.1
Host: www.test.ru
User-Agent: newLISP v8808
Connection: close
Content-type: text/html
Content-length: 7

test-1
HTTP/1.1 200 OK
Date: Mon, 05 Jun 2006 13:30:25 GMT
Server: Apache/2.0.54 (Debian GNU/Linux) mod_python/3.1.3 Python/2.3.5 PHP/4.3.10-16 mod_perl/1.999.21 Perl/v5.8.4
Connection: close
Transfer-Encoding: chunked
Content-Type: text/html

0


The string "HTTP/1.1 200 OK" and the rest is the answer to the client, pasted through a netcat connection.
WBR, Dmi

Lutz

#1
'put-url' did not handle a "Transfer-Encoding: chunked" size of 0. This will be fixed in 8.8.10



Lutz

Dmi

#2
Thanx!
WBR, Dmi