Adjust test definition for TPF.
authorYang Tse <yangsita@gmail.com>
Mon, 11 May 2009 17:21:26 +0000 (17:21 +0000)
committerYang Tse <yangsita@gmail.com>
Mon, 11 May 2009 17:21:26 +0000 (17:21 +0000)
tests/data/test508
tests/data/test555

index c4e8d3d..5cd4b8c 100644 (file)
@@ -34,6 +34,10 @@ http://%HOSTIP:%HTTPPORT/508
 #
 # Verify data after the test has been "shot"
 <verify>
+<strippart>
+# remove CR that CURLOPT_TRANSFERTEXT added, when CharConv enabled:
+s/^(this is what we post to the silly web server)\r\n/$1\n/ if($has_charconv)
+</strippart>
 <protocol>
 POST /508 HTTP/1.1\r
 Host: %HOSTIP:%HTTPPORT\r
index 6a7aa1d..d433569 100644 (file)
@@ -99,6 +99,8 @@ http://test.remote.haxx.se/path/555 http://%HOSTIP:%HTTPPORT s1lly:pers0n
 # the local host name and thus differs on different machines!
 <strippart>
 s/^(Proxy-Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAABQAFAHAAAAA).*/$1/
+# remove CR that CURLOPT_TRANSFERTEXT added, when CharConv enabled:
+s/^(this is the blurb we want to upload)\r\n/$1\n/ if($has_charconv)
 </strippart>
 <protocol>
 POST http://test.remote.haxx.se/path/555 HTTP/1.1\r