Commit de1368e
committed
Adding ability to override the built-in cURL parameters.
Previously, these were hard-coded, but now it is possible to add additional parameters, or to change the hard-coded values.
Some use-cases that I have already encountered (there are no doubt many more):
* The ability to set CURLOPT_STDERR (and to set CURLOPT_VERBOSE to true), to aid debugging.
* The ability to set CURLOPT_SSL_VERIFYPEER to false if you don't have appropriate root CA certificates set up, or to set CURLOPT_CAINFO to an appropriate path if cURL isn't picking this up automatically.
Default behaviour is unchanged.1 parent 9cb74ee commit de1368e
1 file changed
+38
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
63 | 70 | | |
64 | 71 | | |
65 | 72 | | |
| |||
118 | 125 | | |
119 | 126 | | |
120 | 127 | | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
121 | 155 | | |
122 | 156 | | |
123 | 157 | | |
| |||
204 | 238 | | |
205 | 239 | | |
206 | 240 | | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
207 | 245 | | |
208 | 246 | | |
209 | 247 | | |
| |||
0 commit comments