88
|
1 |
--- pycurl/src/pycurl.c 2006/08/11 10:37:19 1.116
|
|
2 |
+++ pycurl/src/pycurl.c 2006/11/07 15:14:11 1.117
|
|
3 |
@@ -1,4 +1,4 @@
|
|
4 |
-/* $Id: pycurl.c,v 1.116 2006/08/11 10:37:19 kjetilja Exp $ */
|
|
5 |
+/* $Id: pycurl.c,v 1.117 2006/11/07 15:14:11 kjetilja Exp $ */
|
|
6 |
|
|
7 |
/* PycURL -- cURL Python module
|
|
8 |
*
|
|
9 |
@@ -48,8 +48,8 @@
|
|
10 |
#if !defined(PY_VERSION_HEX) || (PY_VERSION_HEX < 0x02020000)
|
|
11 |
# error "Need Python version 2.2 or greater to compile pycurl."
|
|
12 |
#endif
|
|
13 |
-#if !defined(LIBCURL_VERSION_NUM) || (LIBCURL_VERSION_NUM < 0x070f05)
|
|
14 |
-# error "Need libcurl version 7.15.5 or greater to compile pycurl."
|
|
15 |
+#if !defined(LIBCURL_VERSION_NUM) || (LIBCURL_VERSION_NUM < 0x071000)
|
|
16 |
+# error "Need libcurl version 7.16.0 or greater to compile pycurl."
|
|
17 |
#endif
|
|
18 |
|
|
19 |
#undef UNUSED
|
|
20 |
@@ -132,8 +132,6 @@
|
|
21 |
struct curl_slist *quote;
|
|
22 |
struct curl_slist *postquote;
|
|
23 |
struct curl_slist *prequote;
|
|
24 |
- struct curl_slist *source_prequote;
|
|
25 |
- struct curl_slist *source_postquote;
|
|
26 |
/* callbacks */
|
|
27 |
PyObject *w_cb;
|
|
28 |
PyObject *h_cb;
|
|
29 |
@@ -669,8 +667,6 @@
|
|
30 |
self->quote = NULL;
|
|
31 |
self->postquote = NULL;
|
|
32 |
self->prequote = NULL;
|
|
33 |
- self->source_postquote = NULL;
|
|
34 |
- self->source_prequote = NULL;
|
|
35 |
|
|
36 |
/* Set callback pointers to NULL by default */
|
|
37 |
self->w_cb = NULL;
|
|
38 |
@@ -860,8 +856,6 @@
|
|
39 |
SFREE(self->quote);
|
|
40 |
SFREE(self->postquote);
|
|
41 |
SFREE(self->prequote);
|
|
42 |
- SFREE(self->source_postquote);
|
|
43 |
- SFREE(self->source_prequote);
|
|
44 |
#undef SFREE
|
|
45 |
|
|
46 |
/* Last, free the options. This must be done after the curl handle
|
|
47 |
@@ -1475,9 +1469,6 @@
|
|
48 |
case CURLOPT_URL:
|
|
49 |
case CURLOPT_USERAGENT:
|
|
50 |
case CURLOPT_USERPWD:
|
|
51 |
- case CURLOPT_SOURCE_HOST:
|
|
52 |
- case CURLOPT_SOURCE_USERPWD:
|
|
53 |
- case CURLOPT_SOURCE_PATH:
|
|
54 |
case CURLOPT_FTP_ALTERNATIVE_TO_USER:
|
|
55 |
/* FIXME: check if more of these options allow binary data */
|
|
56 |
str = PyString_AsString_NoNUL(obj);
|
|
57 |
@@ -1646,12 +1637,6 @@
|
|
58 |
case CURLOPT_PREQUOTE:
|
|
59 |
old_slist = &self->prequote;
|
|
60 |
break;
|
|
61 |
- case CURLOPT_SOURCE_PREQUOTE:
|
|
62 |
- old_slist = &self->source_prequote;
|
|
63 |
- break;
|
|
64 |
- case CURLOPT_SOURCE_POSTQUOTE:
|
|
65 |
- old_slist = &self->source_postquote;
|
|
66 |
- break;
|
|
67 |
case CURLOPT_HTTPPOST:
|
|
68 |
break;
|
|
69 |
default:
|
|
70 |
@@ -3180,14 +3165,9 @@
|
|
71 |
insint_c(d, "FTP_SSL", CURLOPT_FTP_SSL);
|
|
72 |
insint_c(d, "POSTFIELDSIZE_LARGE", CURLOPT_POSTFIELDSIZE_LARGE);
|
|
73 |
insint_c(d, "TCP_NODELAY", CURLOPT_TCP_NODELAY);
|
|
74 |
- insint_c(d, "SOURCE_USERPWD", CURLOPT_SOURCE_USERPWD);
|
|
75 |
- insint_c(d, "SOURCE_PREQUOTE", CURLOPT_SOURCE_PREQUOTE);
|
|
76 |
- insint_c(d, "SOURCE_POSTQUOTE", CURLOPT_SOURCE_POSTQUOTE);
|
|
77 |
insint_c(d, "FTPSSLAUTH", CURLOPT_FTPSSLAUTH);
|
|
78 |
insint_c(d, "IOCTLFUNCTION", CURLOPT_IOCTLFUNCTION);
|
|
79 |
insint_c(d, "IOCTLDATA", CURLOPT_IOCTLDATA);
|
|
80 |
- insint_c(d, "SOURCE_URL", CURLOPT_SOURCE_URL);
|
|
81 |
- insint_c(d, "SOURCE_QUOTE", CURLOPT_SOURCE_QUOTE);
|
|
82 |
insint_c(d, "FTP_ACCOUNT", CURLOPT_FTP_ACCOUNT);
|
|
83 |
insint_c(d, "IGNORE_CONTENT_LENGTH", CURLOPT_IGNORE_CONTENT_LENGTH);
|
|
84 |
insint_c(d, "COOKIELIST", CURLOPT_COOKIELIST);
|