put-url Segfault

For the Compleat Fan
Locked
Dmi
Posts: 408
Joined: Sat Jun 04, 2005 4:16 pm
Location: Russia
Contact:

put-url Segfault

Post by Dmi »

Initially, I got this with real apache and put.cgi from newLisp manual.
The following - is the protoclo recreation, modelled with netcat.

Code: Select all

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-1\n")
Segmentation fault
The other side protocol is following:

Code: Select all

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
Posts: 5289
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California
Contact:

Post by Lutz »

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

Lutz

Dmi
Posts: 408
Joined: Sat Jun 04, 2005 4:16 pm
Location: Russia
Contact:

Post by Dmi »

Thanx!
WBR, Dmi

Locked