|
|
Subject: curl/tests FILEFORMAT,1.13,1.14 - msg#00066
List: web.curl.cvs
Update of /cvsroot/curl/curl/tests
In directory sc8-pr-cvs1:/tmp/cvs-serv2710
Modified Files:
FILEFORMAT
Log Message:
Document the <dataNUM> thing we use,
Index: FILEFORMAT
===================================================================
RCS file: /cvsroot/curl/curl/tests/FILEFORMAT,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- FILEFORMAT 19 May 2003 13:06:10 -0000 1.13
+++ FILEFORMAT 22 May 2003 22:37:00 -0000 1.14
@@ -19,6 +19,12 @@
safely. Set the nocheck=1 to prevent the test script to verify the arrival
of this data.
</data>
+<dataNUM>
+Send back this contents instead of the <data> one. The num is set by:
+A) The test number in the request line is >10000 and this is the remainder
+of [test case number]%10000.
+B) The request was HTTP and included digest details, which sets NUM to 1000.
+</dateNUM>
<datacheck [nonewline=yes]>
if the data is sent but this is what should be checked afterwards. If
'nonewline' is set, we will cut off the trailing newline of this given data
-------------------------------------------------------
This SF.net email is sponsored by: ObjectStore.
If flattening out C++ or Java code to make your application fit in a
relational database is painful, don't do it! Check out ObjectStore.
Now part of Progress Software. http://www.objectstore.net/sourceforge
Was this page helpful?
Thread at a glance:
Previous Message by Date:
click to view message preview
curl/tests/server sws.c,1.28,1.29
Update of /cvsroot/curl/curl/tests/server
In directory sc8-pr-cvs1:/tmp/cvs-serv2593/server
Modified Files:
sws.c
Log Message:
Digest support added
Index: sws.c
===================================================================
RCS file: /cvsroot/curl/curl/tests/server/sws.c,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -d -r1.28 -r1.29
--- sws.c 3 Apr 2003 13:43:15 -0000 1.28
+++ sws.c 22 May 2003 22:36:39 -0000 1.29
@@ -290,6 +290,13 @@
sprintf(logbuf, "Found test number %d in path", test_no);
logmsg(logbuf);
+
+ if(strstr(reqbuf, "Authorization: Digest")) {
+ /* If the client is passing this Digest-header, we set the part number
+ to 1000. Not only to spice up the complexity of this, but to make
+ Digest stuff to work in the test suite. */
+ *part = 1000;
+ }
}
else {
if(sscanf(reqbuf, "CONNECT %" MAXDOCNAMELEN_TXT "s HTTP/%d.%d",
-------------------------------------------------------
This SF.net email is sponsored by: ObjectStore.
If flattening out C++ or Java code to make your application fit in a
relational database is painful, don't do it! Check out ObjectStore.
Now part of Progress Software. http://www.objectstore.net/sourceforge
Next Message by Date:
click to view message preview
curl/lib url.c,1.276,1.277
Update of /cvsroot/curl/curl/lib
In directory sc8-pr-cvs1:/tmp/cvs-serv3244
Modified Files:
url.c
Log Message:
Added CURLOPT_HTTPDIGEST support
SOCKS5 fix as suggested by Jis in bugreport #741841.
Index: url.c
===================================================================
RCS file: /cvsroot/curl/curl/lib/url.c,v
retrieving revision 1.276
retrieving revision 1.277
diff -u -d -r1.276 -r1.277
--- url.c 21 May 2003 08:08:50 -0000 1.276
+++ url.c 22 May 2003 22:38:46 -0000 1.277
@@ -226,6 +226,8 @@
if(data->info.contenttype)
free(data->info.contenttype);
+ Curl_digest_cleanup(data);
+
free(data);
return CURLE_OK;
}
@@ -838,6 +840,12 @@
data->set.encoding = (char*)ALL_CONTENT_ENCODINGS;
break;
+ case CURLOPT_HTTPDIGEST:
+ /*
+ * Enable HTTP Digest Authentication
+ */
+ data->set.httpdigest = va_arg(param, long);
+ break;
case CURLOPT_USERPWD:
/*
* user:password to use in the operation
@@ -1535,7 +1543,7 @@
return 1;
}
- if ((socksreq[0] != 5) || /* version */
+ if ((socksreq[0] != 1) || /* version */
(socksreq[1] != 0)) { /* status */
failf(conn->data, "User was rejected by the SOCKS5 server (%d %d).",
socksreq[0], socksreq[1]);
-------------------------------------------------------
This SF.net email is sponsored by: ObjectStore.
If flattening out C++ or Java code to make your application fit in a
relational database is painful, don't do it! Check out ObjectStore.
Now part of Progress Software. http://www.objectstore.net/sourceforge
Previous Message by Thread:
click to view message preview
curl/tests/server sws.c,1.28,1.29
Update of /cvsroot/curl/curl/tests/server
In directory sc8-pr-cvs1:/tmp/cvs-serv2593/server
Modified Files:
sws.c
Log Message:
Digest support added
Index: sws.c
===================================================================
RCS file: /cvsroot/curl/curl/tests/server/sws.c,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -d -r1.28 -r1.29
--- sws.c 3 Apr 2003 13:43:15 -0000 1.28
+++ sws.c 22 May 2003 22:36:39 -0000 1.29
@@ -290,6 +290,13 @@
sprintf(logbuf, "Found test number %d in path", test_no);
logmsg(logbuf);
+
+ if(strstr(reqbuf, "Authorization: Digest")) {
+ /* If the client is passing this Digest-header, we set the part number
+ to 1000. Not only to spice up the complexity of this, but to make
+ Digest stuff to work in the test suite. */
+ *part = 1000;
+ }
}
else {
if(sscanf(reqbuf, "CONNECT %" MAXDOCNAMELEN_TXT "s HTTP/%d.%d",
-------------------------------------------------------
This SF.net email is sponsored by: ObjectStore.
If flattening out C++ or Java code to make your application fit in a
relational database is painful, don't do it! Check out ObjectStore.
Now part of Progress Software. http://www.objectstore.net/sourceforge
Next Message by Thread:
click to view message preview
curl/lib url.c,1.276,1.277
Update of /cvsroot/curl/curl/lib
In directory sc8-pr-cvs1:/tmp/cvs-serv3244
Modified Files:
url.c
Log Message:
Added CURLOPT_HTTPDIGEST support
SOCKS5 fix as suggested by Jis in bugreport #741841.
Index: url.c
===================================================================
RCS file: /cvsroot/curl/curl/lib/url.c,v
retrieving revision 1.276
retrieving revision 1.277
diff -u -d -r1.276 -r1.277
--- url.c 21 May 2003 08:08:50 -0000 1.276
+++ url.c 22 May 2003 22:38:46 -0000 1.277
@@ -226,6 +226,8 @@
if(data->info.contenttype)
free(data->info.contenttype);
+ Curl_digest_cleanup(data);
+
free(data);
return CURLE_OK;
}
@@ -838,6 +840,12 @@
data->set.encoding = (char*)ALL_CONTENT_ENCODINGS;
break;
+ case CURLOPT_HTTPDIGEST:
+ /*
+ * Enable HTTP Digest Authentication
+ */
+ data->set.httpdigest = va_arg(param, long);
+ break;
case CURLOPT_USERPWD:
/*
* user:password to use in the operation
@@ -1535,7 +1543,7 @@
return 1;
}
- if ((socksreq[0] != 5) || /* version */
+ if ((socksreq[0] != 1) || /* version */
(socksreq[1] != 0)) { /* status */
failf(conn->data, "User was rejected by the SOCKS5 server (%d %d).",
socksreq[0], socksreq[1]);
-------------------------------------------------------
This SF.net email is sponsored by: ObjectStore.
If flattening out C++ or Java code to make your application fit in a
relational database is painful, don't do it! Check out ObjectStore.
Now part of Progress Software. http://www.objectstore.net/sourceforge
|
|