Bug in ComLine

A line 464 in HTLine.c in the ComLine program there is a bug.
While it is processing the form command line options, it kills whitespace
inside of a form item i.e.:

w3c -form http://kjwelkrj "foo=bar" "baz=foo and bar"
This sends only foo=bar and baz=foo to the http server.

Here is the old lines 464-465:
        char * name = HTNextField(&string);
        char * value = HTNextField(&string);

And what I suggest:
        char * name = HTNextField(&string);
        char * value = string;

This fixes it for me.  Please put this in the base distribution please.

-Jeremy Bettis
jeremy@hksys.com

Received on Tuesday, 19 January 1999 16:33:08 UTC