okatse
okatse
I changed if (strpos($output, 'HTTP/1.1 100 Continue') === 0) { $output = substr($output, strpos($output, $breakString) + 4); } if (strpos($output, 'HTTP/1.1 200 Connection established') === 0) { $output = substr($output,...
As part of the explanation. The protocol header can take several values https://everything.curl.dev/http/versions HTTP/1.0 100 Continue HTTP/1.0 200 Connection established HTTP/1.1 100 Continue HTTP/1.1 200 Connection established HTTP/2 100 Continue...
I admit that my case is isolated. I deliberately don't use HTTP/1.0. I connect to different external services through different proxies and one of them uses an old protocol. I...
I'm not the only one who has this problem. The problem is that the proxy returns its own header and the curl library returns too much https://stackoverflow.com/questions/16965530/what-to-do-with-extra-http-header-from-proxy https://github.com/cfug/dio/issues/2053
A small update. I migrated from 4.4.4 to 4.5.1. My proxy sends headers: ``` HTTP/1.0 200 Connection established HTTP/1.1 200 OK cache-control: no-store pragma: no-cache content-length: 2684 content-type: application/json ```...