src/Bpack247.php 1 location
|
@@ 93-96 (lines=4) @@
|
90 |
|
$options[CURLOPT_HTTP_VERSION] = CURL_HTTP_VERSION_1_1; |
91 |
|
$options[CURLOPT_HTTPHEADER] = $headers; |
92 |
|
|
93 |
|
if ($method == 'POST') { |
94 |
|
$options[CURLOPT_POST] = true; |
95 |
|
$options[CURLOPT_POSTFIELDS] = $body; |
96 |
|
} |
97 |
|
|
98 |
|
// init |
99 |
|
$this->curl = curl_init(); |
src/Bpost.php 1 location
|
@@ 234-237 (lines=4) @@
|
231 |
|
$options[CURLOPT_HTTP_VERSION] = CURL_HTTP_VERSION_1_1; |
232 |
|
$options[CURLOPT_HTTPHEADER] = $headers; |
233 |
|
|
234 |
|
if ($method == 'POST') { |
235 |
|
$options[CURLOPT_POST] = true; |
236 |
|
$options[CURLOPT_POSTFIELDS] = $body; |
237 |
|
} |
238 |
|
|
239 |
|
$this->getApiCaller()->doCall($options); |
240 |
|
|