# Verify data after the test has been "shot"
<verify>
-<file name="log/stdout1508" mode="text">
+<file name="log/stdout1508">
We are done
</file>
</verify>
# Server-side
<reply>
-<data mode="text">
+<data>
Adding handle 0
Handle 0 Completed with status 0
Adding handle 1
# Server-side
<reply>
-<data mode="text">
+<data>
Adding handle 0
Handle 0 Completed with status 0
Adding handle 1
# Server-side
<reply>
-<data mode="text">
+<data>
Adding handle 0
Handle 0 Completed with status 0
Adding handle 1
# Server-side
<reply>
-<data mode="text">
+<data>
Adding handle 0
Handle 0 Completed with status 0
Adding handle 1
#
# Server-side
<reply name="1">
-<data mode="text">
-HTTP/1.1 200 OK
-Date: Thu, 09 Nov 2010 14:49:00 GMT
-Server: test-server/fake
-Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
-ETag: "21025-dc7-39462498"
-Accept-Ranges: bytes
-Content-Length: 6
-Connection: close
-Content-Type: text/html
-Funny-head: yesyes
-
+<data>
+HTTP/1.1 200 OK\r
+Date: Thu, 09 Nov 2010 14:49:00 GMT\r
+Server: test-server/fake\r
+Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT\r
+ETag: "21025-dc7-39462498"\r
+Accept-Ranges: bytes\r
+Content-Length: 6\r
+Connection: close\r
+Content-Type: text/html\r
+Funny-head: yesyes\r
+\r
-foo-
</data>
</reply>
#
# Verify data after the test has been "shot"
<verify>
-<file name="log/ip500" mode="text">
+<file name="log/ip500">
IP: %HOSTIP
</file>
<protocol>
#
# Server-side
<reply>
-<data mode="text">
+<data>
foo
bar swsclose
bar
# Verify data after the test has been "shot"
<verify>
-<stdout mode="text">
+<stdout>
GLOBAL_INIT
SHARE_INIT
CURLSHOPT_LOCKFUNC
#
# Server-side
<reply>
-<data mode="text">
-HTTP/1.1 200 OK
-Date: Thu, 09 Nov 2010 14:49:00 GMT
-Server: test-server/fake swsclose
-Connection: close
-Content-Type: text/html
-
+<data>
+HTTP/1.1 200 OK\r
+Date: Thu, 09 Nov 2010 14:49:00 GMT\r
+Server: test-server/fake swsclose\r
+Connection: close\r
+Content-Type: text/html\r
+\r
hello
</data>
</reply>
#
# Verify data after the test has been "shot"
<verify>
-<stdout mode="text">
+<stdout>
seen custom_calloc()
seen custom_malloc()
seen custom_realloc()
#
# Server-side
<reply>
-<data mode="text">
-HTTP/1.1 200 OK
-Date: Thu, 09 Nov 2010 14:49:00 GMT
-Server: test-server/fake swsclose
-Connection: close
-Content-Type: text/html
-
+<data>
+HTTP/1.1 200 OK\r
+Date: Thu, 09 Nov 2010 14:49:00 GMT\r
+Server: test-server/fake swsclose\r
+Connection: close\r
+Content-Type: text/html\r
+\r
hello
</data>
</reply>
#
# Server-side
<reply>
-<data mode="text">
+<data>
HTTP/1.1 200 OK swsclose\r
Date: Thu, 09 Nov 2010 14:49:00 GMT\r
Server: yes\r
#
# Server-side
<reply>
-<data mode="text">
-HTTP/1.1 200 OK
-Date: Thu, 09 Nov 2010 14:49:00 GMT
-Server: test-server/fake
-Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
-ETag: "21025-dc7-39462498"
-Accept-Ranges: bytes
-Content-Length: 6
-Connection: close
-Content-Type: text/html
-Funny-head: yesyes
-
+<data>
+HTTP/1.1 200 OK\r
+Date: Thu, 09 Nov 2010 14:49:00 GMT\r
+Server: test-server/fake\r
+Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT\r
+ETag: "21025-dc7-39462498"\r
+Accept-Ranges: bytes\r
+Content-Length: 6\r
+Connection: close\r
+Content-Type: text/html\r
+Funny-head: yesyes\r
+\r
</data>
</reply>
#
# Server-side
<reply>
-<data mode="text">
-HTTP/1.1 200 OK swsclose
-Date: Thu, 09 Nov 2010 14:49:00 GMT
-Server: test-server/fake
-Content-Length: 3
-
+<data>
+HTTP/1.1 200 OK swsclose\r
+Date: Thu, 09 Nov 2010 14:49:00 GMT\r
+Server: test-server/fake\r
+Content-Length: 3\r
+\r
OK
</data>
</reply>
#
# Server-side
<reply>
-<data mode="text">
-HTTP/1.1 200 OK swsclose
-Date: Thu, 09 Nov 2010 14:49:00 GMT
-Server: test-server/fake
-Content-Length: 3
-
+<data>
+HTTP/1.1 200 OK swsclose\r
+Date: Thu, 09 Nov 2010 14:49:00 GMT\r
+Server: test-server/fake\r
+Content-Length: 3\r
+\r
OK
</data>
</reply>
#
# Verify data after the test has been "shot"
<verify>
-<stdout mode="text">
+<stdout>
0: Sun, 06 Nov 1994 08:49:37 GMT => 784111777
1: Sunday, 06-Nov-94 08:49:37 GMT => 784111777
2: Sun Nov 6 08:49:37 1994 => 784111777
#
# Server-side
<reply>
-<data mode="text">
-HTTP/1.1 200 OK swsbounce
-Date: Thu, 09 Nov 2010 14:49:00 GMT
-Server: test-server/fake
-Content-Length: 8
-
+<data>
+HTTP/1.1 200 OK swsbounce\r
+Date: Thu, 09 Nov 2010 14:49:00 GMT\r
+Server: test-server/fake\r
+Content-Length: 8\r
+\r
content
</data>
<data1>
-HTTP/1.1 200 OK swsclose
-Date: Thu, 09 Nov 2010 14:49:00 GMT
-Server: test-server/fake
-Content-Length: 9
-
+HTTP/1.1 200 OK swsclose\r
+Date: Thu, 09 Nov 2010 14:49:00 GMT\r
+Server: test-server/fake\r
+Content-Length: 9\r
+\r
content2
</data1>
<datacheck>
-HTTP/1.1 200 OK swsbounce
-Date: Thu, 09 Nov 2010 14:49:00 GMT
-Server: test-server/fake
-Content-Length: 8
-
+HTTP/1.1 200 OK swsbounce\r
+Date: Thu, 09 Nov 2010 14:49:00 GMT\r
+Server: test-server/fake\r
+Content-Length: 8\r
+\r
content
-HTTP/1.1 200 OK swsclose
-Date: Thu, 09 Nov 2010 14:49:00 GMT
-Server: test-server/fake
-Content-Length: 9
-
+HTTP/1.1 200 OK swsclose\r
+Date: Thu, 09 Nov 2010 14:49:00 GMT\r
+Server: test-server/fake\r
+Content-Length: 9\r
+\r
content2
</datacheck>
</reply>
Accept: */*\r
\r
</protocol>
-<stdout mode="text">
+<stdout>
hello
</stdout>
</verify>
Proxy-Connection: Keep-Alive\r
\r
</protocol>
-<stdout mode="text">
+<stdout>
hello
</stdout>
</verify>
</info>
<reply>
-<data mode="text">
-HTTP/1.1 404 Badness
-Date: Thu, 09 Nov 2010 14:49:00 GMT
-ETag: "21025-dc7-39462498"
-Content-Length: 6
-Content-Type: text/html
-Funny-head: yesyes
-
+<data>
+HTTP/1.1 404 Badness\r
+Date: Thu, 09 Nov 2010 14:49:00 GMT\r
+ETag: "21025-dc7-39462498"\r
+Content-Length: 6\r
+Content-Type: text/html\r
+Funny-head: yesyes\r
+\r
hejsan
</data>
<data1>
-HTTP/1.1 200 Fine
-Date: Thu, 09 Nov 2010 14:49:00 GMT
-Content-Length: 13
-Connection: close
-Content-Type: text/html
-
+HTTP/1.1 200 Fine\r
+Date: Thu, 09 Nov 2010 14:49:00 GMT\r
+Content-Length: 13\r
+Connection: close\r
+Content-Type: text/html\r
+\r
fine content
</data1>
</info>
<reply>
-<data mode="text">
-HTTP/1.1 404 Badness
-Date: Thu, 09 Nov 2010 14:49:00 GMT
-ETag: "21025-dc7-39462498"
-Content-Length: 6
-Content-Type: text/html
-Funny-head: yesyes
-
+<data>
+HTTP/1.1 404 Badness\r
+Date: Thu, 09 Nov 2010 14:49:00 GMT\r
+ETag: "21025-dc7-39462498"\r
+Content-Length: 6\r
+Content-Type: text/html\r
+Funny-head: yesyes\r
+\r
hejsan
</data>
<data1>
-HTTP/1.1 200 Fine
-Date: Thu, 09 Nov 2010 14:49:00 GMT
-Content-Length: 13
-Connection: close
-Content-Type: text/html
-
+HTTP/1.1 200 Fine\r
+Date: Thu, 09 Nov 2010 14:49:00 GMT\r
+Content-Length: 13\r
+Connection: close\r
+Content-Type: text/html\r
+\r
fine content
</data1>
#
# Server-side
<reply>
-<data mode="text">
+<data>
file contents
</data>
# There's no MTDM in the protocol here since this code doesn't ask for the
# time/date of the file
<verify>
-<stdout mode="text">
+<stdout>
%9C%26K%3DI%04%A1%01%E0%D8%7C%20%B7%EFS%29%FA%1DW%E1
</stdout>
</verify>
#
# Server-side
<reply>
-<data mode="text">
-HTTP/1.1 200 OK swsclose
-Date: Thu, 09 Nov 2010 14:49:00 GMT
-Server: test-server/fake
-Content-Length: 3
-
+<data>
+HTTP/1.1 200 OK swsclose\r
+Date: Thu, 09 Nov 2010 14:49:00 GMT\r
+Server: test-server/fake\r
+Content-Length: 3\r
+\r
OK
</data>
</reply>
Proxy-Connection: Keep-Alive\r
\r
</protocol>
-<stdout mode="text">
+<stdout>
hello
</stdout>
</verify>
Proxy-Connection: Keep-Alive\r
\r
</protocol>
-<stdout mode="text">
+<stdout>
hello
</stdout>
</verify>
#
# Server-side
<reply>
-<data mode="text">
-HTTP/1.1 200 OK
-Date: Thu, 09 Nov 2010 14:49:00 GMT
-Server: test-server/fake swsclose
-Connection: close
-Content-Type: text/html
-
+<data>
+HTTP/1.1 200 OK\r
+Date: Thu, 09 Nov 2010 14:49:00 GMT\r
+Server: test-server/fake swsclose\r
+Connection: close\r
+Content-Type: text/html\r
+\r
hello
</data>
</reply>
#
# Verify data after the test has been "shot"
<verify>
-<stdout mode="text">
+<stdout>
All curl_mprintf() unsigned short tests OK!
All curl_mprintf() signed short tests OK!
All curl_mprintf() unsigned int tests OK!
#
# Verify data after the test has been "shot"
<verify>
-<file name="log/memdump" mode="text">
+<file name="log/memdump">
MEM lib558.c: malloc()
MEM lib558.c: free()
MEM escape.c: malloc()
Proxy-Connection: Keep-Alive\r
\r
</protocol>
-<stdout mode="text">
+<stdout>
hello
</stdout>
</verify>
#
# Server-side
<reply>
-<data mode="text">
-HTTP/1.1 200 OK
-Date: Thu, 09 Nov 2010 14:49:00 GMT
-Server: test-server/fake
-Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
-ETag: "21025-dc7-39462498"
-Accept-Ranges: bytes
-Content-Length: 0
-Connection: close
-Content-Type: text/html
-Funny-head: yesyes
-
+<data>
+HTTP/1.1 200 OK\r
+Date: Thu, 09 Nov 2010 14:49:00 GMT\r
+Server: test-server/fake\r
+Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT\r
+ETag: "21025-dc7-39462498"\r
+Accept-Ranges: bytes\r
+Content-Length: 0\r
+Connection: close\r
+Content-Type: text/html\r
+Funny-head: yesyes\r
+\r
</data>
</reply>
#
# Verify data after the test has been "shot"
<verify>
-<file name="log/ip566" mode="text">
+<file name="log/ip566">
CL: 0
</file>
<protocol>
</client>
<verify>
-<stdout mode="text">
+<stdout>
RTP: message size 10, channel 1
RTP: message size 500, channel 0
RTP: message size 196, channel 0
RETR someothertext.txt\r
QUIT\r
</protocol>
-<stdout mode="text">
+<stdout>
This file should have permissions 444
This file should have permissions 666
This file should have permissions 777
RETR someothertext.txt\r
QUIT\r
</protocol>
-<stdout mode="text">
+<stdout>
This file should have permissions 444
This file should have permissions 666
This file should have permissions 777
<errorcode>
0
</errorcode>
-<stdout mode="text">
+<stdout>
=============================================================
Remains: 14
Filename: .
#
# Server-side
<reply name="1">
-<data mode="text">
-HTTP/1.1 200 OK
-Date: Thu, 09 Nov 2010 14:49:00 GMT
-Server: test-server/fake
-Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
-ETag: "21025-dc7-39462498"
-Accept-Ranges: bytes
-Content-Length: 6
-Connection: close
-Content-Type: text/html
-Funny-head: yesyes
-
+<data>
+HTTP/1.1 200 OK\r
+Date: Thu, 09 Nov 2010 14:49:00 GMT\r
+Server: test-server/fake\r
+Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT\r
+ETag: "21025-dc7-39462498"\r
+Accept-Ranges: bytes\r
+Content-Length: 6\r
+Connection: close\r
+Content-Type: text/html\r
+Funny-head: yesyes\r
+\r
-foo-
</data>
</reply>
#
# Verify data after the test has been "shot"
<verify>
-<file name="log/ip578" mode="text">
+<file name="log/ip578">
PASSED, UL data matched data size
</file>
</verify>
#
# Verify data after the test has been "shot"
<verify>
-<file name="log/ip579" mode="text">
+<file name="log/ip579">
Progress callback called with UL 0 out of 0
Progress callback called with UL 0 out of -1
Progress callback called with UL 8 out of -1
# Silly division of the first request is solely to appease the server which expects n_data_items == n_requests
<reply>
<data1>
-HTTP/1.1 200 OK
-Server: test-server/fake
-Content-Length: 4
-
+HTTP/1.1 200 OK\r
+Server: test-server/fake\r
+Content-Length: 4\r
+\r
584
</data1>
<data2>
-HTTP/1.1 200 OK
+HTTP/1.1 200 OK\r
</data2>
<data3>
-Server: test-server/fake
+Server: test-server/fake\r
</data3>
<data4>
-Content-Length: 0
-
-HTTP/1.1 200 OK
-Server: test-server/fake
-Content-Length: 5
-
+Content-Length: 0\r
+\r
+HTTP/1.1 200 OK\r
+Server: test-server/fake\r
+Content-Length: 5\r
+\r
585
-HTTP/1.1 200 OK
-Server: test-server/fake
-Content-Length: 4
-
+HTTP/1.1 200 OK\r
+Server: test-server/fake\r
+Content-Length: 4\r
+\r
586
</data4>
</reply>
Accept: */*\r
\r
</protocol>
-<stdout mode="text">
-HTTP/1.1 200 OK
-Server: test-server/fake
-Content-Length: 4
-
+<stdout>
+HTTP/1.1 200 OK\r
+Server: test-server/fake\r
+Content-Length: 4\r
+\r
584
-HTTP/1.1 200 OK
-Server: test-server/fake
-Content-Length: 0
-
-HTTP/1.1 200 OK
-Server: test-server/fake
-Content-Length: 5
-
+HTTP/1.1 200 OK\r
+Server: test-server/fake\r
+Content-Length: 0\r
+\r
+HTTP/1.1 200 OK\r
+Server: test-server/fake\r
+Content-Length: 5\r
+\r
585
-HTTP/1.1 200 OK
-Server: test-server/fake
-Content-Length: 4
-
+HTTP/1.1 200 OK\r
+Server: test-server/fake\r
+Content-Length: 4\r
+\r
586
</stdout>
</verify>
#
# Server-side
<reply>
-<data mode="text">
-HTTP/1.1 200 OK
-Date: Thu, 09 Nov 2010 14:49:00 GMT
-Content-Length: 6
-Connection: close
-Content-Type: text/html
-
+<data>
+HTTP/1.1 200 OK\r
+Date: Thu, 09 Nov 2010 14:49:00 GMT\r
+Content-Length: 6\r
+Connection: close\r
+Content-Type: text/html\r
+\r
-foo-
</data>
# since the request runs twice
<datacheck>
-HTTP/1.1 200 OK
-Date: Thu, 09 Nov 2010 14:49:00 GMT
-Content-Length: 6
-Connection: close
-Content-Type: text/html
-
+HTTP/1.1 200 OK\r
+Date: Thu, 09 Nov 2010 14:49:00 GMT\r
+Content-Length: 6\r
+Connection: close\r
+Content-Type: text/html\r
+\r
-foo-
-HTTP/1.1 200 OK
-Date: Thu, 09 Nov 2010 14:49:00 GMT
-Content-Length: 6
-Connection: close
-Content-Type: text/html
-
+HTTP/1.1 200 OK\r
+Date: Thu, 09 Nov 2010 14:49:00 GMT\r
+Content-Length: 6\r
+Connection: close\r
+Content-Type: text/html\r
+\r
-foo-
</datacheck>
#include "test.h"
#ifdef HAVE_LOCALE_H
-#include <locale.h> /* for setlocale() */
+# include <locale.h> /* for setlocale() */
+#endif
+
+#ifdef HAVE_IO_H
+# include <io.h> /* for setmode() */
+#endif
+
+#ifdef HAVE_FCNTL_H
+# include <fcntl.h> /* for setmode() */
#endif
#ifdef CURLDEBUG
{
char *URL;
+#ifdef O_BINARY
+# ifdef __HIGHC__
+ _setmode(stdout, O_BINARY);
+# else
+ setmode(fileno(stdout), O_BINARY);
+# endif
+#endif
+
memory_tracking_init();
/*