aboutsummaryrefslogtreecommitdiff
path: root/tests/data
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2012-05-25 17:33:28 +0900
committerDaniel Stenberg <daniel@haxx.se>2012-05-25 23:06:08 +0200
commitb061fed981c97bef78679f193173ab55a4dce91e (patch)
treea64b568cba77c5eee1ced652fdbd0ce9dd6ad4f4 /tests/data
parent9c480490f7559e169cea59754480f87d2763e2c2 (diff)
Made -D option work with -O and -J.
To achieve this, first new structure HeaderData is defined to hold necessary data to perform header-related work. Then tool_header_cb now receives HeaderData pointer as userdata. All header-related work (currently, dumping header and Content-Disposition inspection) are done in this callback function. HeaderData.outs->config is used to determine whether each work is done. Unit tests were also updated because after this change, curl code always sets CURLOPT_HEADERFUNCTION and CURLOPT_HEADERDATA. Tested with -O -J -D, -O -J -i and -O -J -D -i and all worked fine.
Diffstat (limited to 'tests/data')
-rw-r--r--tests/data/test14002
-rw-r--r--tests/data/test14012
-rw-r--r--tests/data/test14022
-rw-r--r--tests/data/test14032
-rw-r--r--tests/data/test14042
-rw-r--r--tests/data/test14052
-rw-r--r--tests/data/test14062
-rw-r--r--tests/data/test14072
8 files changed, 16 insertions, 0 deletions
diff --git a/tests/data/test1400 b/tests/data/test1400
index 59b2856dd..72989c4c4 100644
--- a/tests/data/test1400
+++ b/tests/data/test1400
@@ -85,6 +85,8 @@ int main(int argc, char *argv[])
CURLOPT_STDERR set to a objectpointer
CURLOPT_DEBUGFUNCTION set to a functionpointer
CURLOPT_DEBUGDATA set to a objectpointer
+ CURLOPT_HEADERFUNCTION set to a functionpointer
+ CURLOPT_HEADERDATA set to a objectpointer
*/
diff --git a/tests/data/test1401 b/tests/data/test1401
index e094ec456..e709c8e08 100644
--- a/tests/data/test1401
+++ b/tests/data/test1401
@@ -104,6 +104,8 @@ int main(int argc, char *argv[])
CURLOPT_STDERR set to a objectpointer
CURLOPT_DEBUGFUNCTION set to a functionpointer
CURLOPT_DEBUGDATA set to a objectpointer
+ CURLOPT_HEADERFUNCTION set to a functionpointer
+ CURLOPT_HEADERDATA set to a objectpointer
*/
diff --git a/tests/data/test1402 b/tests/data/test1402
index d56779207..c3bf834bd 100644
--- a/tests/data/test1402
+++ b/tests/data/test1402
@@ -92,6 +92,8 @@ int main(int argc, char *argv[])
CURLOPT_STDERR set to a objectpointer
CURLOPT_DEBUGFUNCTION set to a functionpointer
CURLOPT_DEBUGDATA set to a objectpointer
+ CURLOPT_HEADERFUNCTION set to a functionpointer
+ CURLOPT_HEADERDATA set to a objectpointer
*/
diff --git a/tests/data/test1403 b/tests/data/test1403
index 3e4a03440..3ec7dd032 100644
--- a/tests/data/test1403
+++ b/tests/data/test1403
@@ -87,6 +87,8 @@ int main(int argc, char *argv[])
CURLOPT_STDERR set to a objectpointer
CURLOPT_DEBUGFUNCTION set to a functionpointer
CURLOPT_DEBUGDATA set to a objectpointer
+ CURLOPT_HEADERFUNCTION set to a functionpointer
+ CURLOPT_HEADERDATA set to a objectpointer
*/
diff --git a/tests/data/test1404 b/tests/data/test1404
index f856a7416..88a06ba39 100644
--- a/tests/data/test1404
+++ b/tests/data/test1404
@@ -141,6 +141,8 @@ int main(int argc, char *argv[])
CURLOPT_STDERR set to a objectpointer
CURLOPT_DEBUGFUNCTION set to a functionpointer
CURLOPT_DEBUGDATA set to a objectpointer
+ CURLOPT_HEADERFUNCTION set to a functionpointer
+ CURLOPT_HEADERDATA set to a objectpointer
*/
diff --git a/tests/data/test1405 b/tests/data/test1405
index 187f84983..692bb1af7 100644
--- a/tests/data/test1405
+++ b/tests/data/test1405
@@ -103,6 +103,8 @@ int main(int argc, char *argv[])
CURLOPT_STDERR set to a objectpointer
CURLOPT_DEBUGFUNCTION set to a functionpointer
CURLOPT_DEBUGDATA set to a objectpointer
+ CURLOPT_HEADERFUNCTION set to a functionpointer
+ CURLOPT_HEADERDATA set to a objectpointer
*/
diff --git a/tests/data/test1406 b/tests/data/test1406
index 216d68e81..478e45ff3 100644
--- a/tests/data/test1406
+++ b/tests/data/test1406
@@ -95,6 +95,8 @@ int main(int argc, char *argv[])
CURLOPT_STDERR set to a objectpointer
CURLOPT_DEBUGFUNCTION set to a functionpointer
CURLOPT_DEBUGDATA set to a objectpointer
+ CURLOPT_HEADERFUNCTION set to a functionpointer
+ CURLOPT_HEADERDATA set to a objectpointer
*/
diff --git a/tests/data/test1407 b/tests/data/test1407
index ab25a30a3..0b40a4732 100644
--- a/tests/data/test1407
+++ b/tests/data/test1407
@@ -75,6 +75,8 @@ int main(int argc, char *argv[])
CURLOPT_STDERR set to a objectpointer
CURLOPT_DEBUGFUNCTION set to a functionpointer
CURLOPT_DEBUGDATA set to a objectpointer
+ CURLOPT_HEADERFUNCTION set to a functionpointer
+ CURLOPT_HEADERDATA set to a objectpointer
*/