curl-users
Re: 7.9.5-pre4 tests on OS X 10.1.2
Date: Mon, 4 Mar 2002 18:55:40 +0100
>>On Mon, 4 Mar 2002, jonatan wrote:
>>
>>> i've narrowed the failing testcase 4 down to the following:
>>>
>>> [localhost:~/curl-7.9.5-pre4/tests] jonatan% ../src/curl --output
>>> log/curl4.out --include -v -H "Accept: replaced"
>>> http://127.0.0.1:8999/4
>>> OPTION: o log/curl4.out
>>> OPTION: i -v
>>> OPTION: v -H
>>> OPTION: H Accept:
>> > OPTION: 5 replaced
>>> OPTION: 5 http://127.0.0.1:8999/4
>>> * gethostbyname(2) failed for replaced
>>> * Closing connection #0
>>> curl: (6) Couldn't resolve host 'replaced'
>>> * Closing connection #0
>>> curl: (7) Couldn't connect to host
>>>
>>> (the OPTION stuff is because i changed line 990 in src/main.c to "#if 1").
>>
>>Gosh. This seems to be a problem with how the -H argument is parsed. It seems
>>as if the double quotes don't work as they are supposed.
>>
>>What if you replace the double quotes (") with single quotes (') in the
>>data/test4 file?
>
>i am running the curl command outside of the test suite.
>all of the following yield the same result as above:
>
>localhost% ~/curl-7.9.5-pre4/src/curl -H "a: b" http://127.0.0.1/
>localhost% ~/curl-7.9.5-pre4/src/curl -H 'a: b' http://127.0.0.1/
>localhost% ~/curl-7.9.5-pre4/src/curl -H a:\ b http://127.0.0.1/
>
>however these work:
>
>localhost% ~/curl-7.9.5-pre4/src/curl -H "a: b" http://127.0.0.1/
sorry, typo. should be:
localhost% ~/curl-7.9.5-pre4/src/curl -H "a:b" http://127.0.0.1/
>localhost% /usr/local/bin/curl -H "a: b" http://127.0.0.1/
>
>my setup is:
>
>localhost% ~/curl-7.9.5-pre4/src/curl -V
>curl 7.9.5-pre4 (powerpc-apple-darwin5.3) libcurl 7.9.5-pre4
>localhost% /usr/local/bin/curl -V
>curl 7.9.2 (powerpc-apple-darwin5.2) libcurl 7.9.2
Received on 2002-03-04