// There should be data, else we don't need to extend $baseUrl with $body
if (!empty($body)) {
// Do we have a question-mark in the script?
- if (strpos($baseUrl, '?') === false) {
+ if (!isInString('?', $baseUrl)) {
// No, so first char must be question mark
$body = '?' . $body;
} else {
// Check if we have chunks
foreach ($response as $line) {
// Make lower-case and trim it
- $line = trim(strtolower($line));
+ $line = trim($line);
// Entry found?
- if ((strpos($line, 'transfer-encoding') !== false) && (strpos($line, 'chunked') !== false)) {
+ if ((isInStringIgnoreCase('transfer-encoding', $line)) && (isInStringIgnoreCase('chunked', $line))) {
// Found!
$isChunked = true;
break;