|
@@ 173-176 (lines=4) @@
|
| 170 |
|
switch ($requestMethod) { |
| 171 |
|
case self::REQUEST_METHOD_POST: |
| 172 |
|
switch ($requestContent) { |
| 173 |
|
case self::REQUEST_CONTENT_XML: |
| 174 |
|
$request = $this->getHttpClient() |
| 175 |
|
->post($url, ['headers' => ['content-type' => 'application/xml'], 'body' => $parameters]); |
| 176 |
|
break; |
| 177 |
|
case self::REQUEST_CONTENT_JSON: |
| 178 |
|
$request = $this->getHttpClient() |
| 179 |
|
->post($url, ['headers' => ['content-type' => 'application/json'], 'body' => $parameters]); |
|
@@ 177-180 (lines=4) @@
|
| 174 |
|
$request = $this->getHttpClient() |
| 175 |
|
->post($url, ['headers' => ['content-type' => 'application/xml'], 'body' => $parameters]); |
| 176 |
|
break; |
| 177 |
|
case self::REQUEST_CONTENT_JSON: |
| 178 |
|
$request = $this->getHttpClient() |
| 179 |
|
->post($url, ['headers' => ['content-type' => 'application/json'], 'body' => $parameters]); |
| 180 |
|
break; |
| 181 |
|
case self::REQUEST_CONTENT_PLAIN: |
| 182 |
|
default: |
| 183 |
|
$request = $this->getHttpClient() |