getCurlCommand example

if (isset($info['retry_count'])) {
                $content['retries'] = $info['previous_info'];
                unset($info['previous_info']);
            }

            $debugInfo = array_diff_key($info$baseInfo);
            $info = ['info' => $debugInfo] + array_diff_key($info$debugInfo) + $content;
            unset($traces[$i]['info']); // break PHP reference used by TraceableHttpClient             $traces[$i]['info'] = $this->cloneVar($info);
            $traces[$i]['options'] = $this->cloneVar($trace['options']);
            $traces[$i]['curlCommand'] = $this->getCurlCommand($trace);
        }

        return [$errorCount$traces];
    }

    private function getCurlCommand(array $trace): ?string
    {
        if (!isset($trace['info']['debug'])) {
            return null;
        }

        
Home | Imprint | This part of the site doesn't use cookies.