Commit 3dc96b7
committed
Add support for parameters to GET requests
Addresses GitHub Issue #8
- Set parameters as CURLOPT_POSTFIELDS, which cURL will automatically translate into the URL query string.
This lets us pass the ?params versus ¶ms logic off to cURL, which makes the code easier to maintain.
- Allow all parameters passed to be empty by making the argument optional on GET, POST, and PUT.
This is mostly for consistency.
Signed-off-by: Daniel Hunsaker <danhunsaker@gmail.com>1 parent 5255fda commit 3dc96b7
1 file changed
Lines changed: 10 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
168 | | - | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
169 | 174 | | |
170 | 175 | | |
171 | 176 | | |
| |||
323 | 328 | | |
324 | 329 | | |
325 | 330 | | |
326 | | - | |
327 | | - | |
| 331 | + | |
| 332 | + | |
328 | 333 | | |
329 | 334 | | |
330 | 335 | | |
331 | 336 | | |
332 | 337 | | |
333 | | - | |
| 338 | + | |
334 | 339 | | |
335 | 340 | | |
336 | 341 | | |
337 | 342 | | |
338 | 343 | | |
339 | 344 | | |
340 | | - | |
| 345 | + | |
341 | 346 | | |
342 | 347 | | |
343 | 348 | | |
| |||
0 commit comments