]> granicus.if.org Git - curl/commitdiff
Fixed some XML parsing problems.
authorDan Fandrich <dan@coneharvesters.com>
Sat, 9 Feb 2008 02:37:31 +0000 (02:37 +0000)
committerDan Fandrich <dan@coneharvesters.com>
Sat, 9 Feb 2008 02:37:31 +0000 (02:37 +0000)
tests/data/test164
tests/data/test185
tests/data/test29
tests/data/test303

index 66de307c41dff4a3676e706b0e27ac00c2fadc7b..baac196263641a80346164a0e227c442a4e5d666 100644 (file)
@@ -1,7 +1,8 @@
 <testcase>
 # Server-side
 # This particular response is an exact excerpt from an actual Apache
-# server when asked for a 0-10,12-15 range.
+# server when asked for a 0-10,12-15 range (except gt/lt changed to {}
+# to avoid XML escaping problems).
 <reply>
 <data>
 HTTP/1.1 206 Partial Content swsclose\r
@@ -17,15 +18,15 @@ Content-Type: multipart/byteranges; boundary=408a326132c
 Content-type: text/html\r
 Content-range: bytes 0-10/3781\r
 \r
-<html>
-<hea
+{html}
+{hea
 \r
 --408a326132c\r
 Content-type: text/html\r
 Content-range: bytes 12-15/3781\r
 \r
->
-<t
+}
+{t
 \r
 --408a326132c--\r
 </data>
index fafd04e4b44fad38e7ff5a7ee88eca49b6a55717..02bb3d37f31baee35e3a7aa54a1759169c2d7daf 100644 (file)
@@ -5,6 +5,7 @@ HTTP
 HTTP GET
 followlocation
 </keywords>
+</info>
 
 # Server-side
 <reply>
index a8a2f19b1e4b84f2c3efec730e930d8322a9cf1b..9a7bd9ef9f5496e6dab1c59fa889ff0397456c9a 100644 (file)
@@ -10,11 +10,11 @@ FAILURE
 # Server-side
 <reply>
 <data>
-HTTP/1.1 200 OK swsclose
-Date: Thu, 09 Nov 2010 14:49:00 GMT
-Connection: close
-
-<html>result</html>
+HTTP/1.1 200 OK swsclose\r
+Date: Thu, 09 Nov 2010 14:49:00 GMT\r
+Connection: close\r
+\r
+_data_result_data_
 </data>
 <postcmd>
 wait 10
index 725193b3e54db9a058df9517cd6be8ec4914bde0..11a80099e7b71bc654eb3de8f4476630255d3182 100644 (file)
@@ -10,11 +10,11 @@ timeout
 # Server-side
 <reply>
 <data>
-HTTP/1.1 200 OK
-Date: Thu, 09 Nov 2010 14:49:00 GMT
-Connection: close
-
-<html>result</html>
+HTTP/1.1 200 OK\r
+Date: Thu, 09 Nov 2010 14:49:00 GMT\r
+Connection: close\r
+\r
+_data_result_data_
 </data>
 <postcmd>
 wait 20