mirror of
https://github.com/curl/curl.git
synced 2026-05-04 20:19:54 +03:00
C string hexadecimal-escaped characters may have more than 2 digits. This results in a wrong C compiler interpretation of a 2-digit escaped character when followed by an hex digit character. The solution retained here is to represent such characters as 3-digit octal escapes. Adjust and extend test 1465 for this case. Closes #9643
118 lines
3.1 KiB
Text
118 lines
3.1 KiB
Text
<testcase>
|
||
<info>
|
||
<keywords>
|
||
HTTP
|
||
HTTP POST
|
||
--libcurl
|
||
</keywords>
|
||
</info>
|
||
|
||
# Server-side
|
||
<reply>
|
||
<data>
|
||
HTTP/1.1 200 OK
|
||
Date: Thu, 29 Jul 2008 14:49:00 GMT
|
||
Server: test-server/fake
|
||
Content-Length: 0
|
||
Content-Type: text/plain
|
||
Connection: close
|
||
|
||
</data>
|
||
</reply>
|
||
|
||
# Client-side
|
||
<client>
|
||
<server>
|
||
http
|
||
</server>
|
||
<name>
|
||
--libcurl for POST with binary content
|
||
</name>
|
||
<setenv>
|
||
SSL_CERT_FILE=
|
||
</setenv>
|
||
<command>
|
||
http://%HOSTIP:%HTTPPORT/we/want/%TESTNUMBER --libcurl log/test%TESTNUMBER.c --data-binary @log/%TESTNUMBER-upload
|
||
</command>
|
||
# abcd |