Need to specify CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1 in proxy.php with 1.9.5500 and old php 7.4?
Closed this issue · 5 comments
Same problem of many years ago. Joomla (v3) is not receiving any data from magento/openmage (v19) with Magebridge 1.9.x
Tonight a magebrige 1.9.5500 with php 7.4 stop to work.
After some research, i remebered this
simbus82/MageBridgeCore@f95b3fb
So i tried a lot and... i put this for a test:
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
Now all is working!
Probably our server this night has received an update. The CURL version in this moment is 8.7.1. I don't know if it is changed just this night!
Hi @simbus82,
Rather than compile CURL 8.7.1 and PHP 7.4, I decide to make the CURL HTTP Version configurable at next 1.9.6100 release
Please try 1.9.6100-beta in your non-production environment.
It would be great to hear your good news soon.
Wow,
Thanks a lot, this is a great improvement!
I will try asap.
Hi @akunzai, I think the declarations of the values of the variable that goes in the proxy.php file are missing, could it be?
Hi @simbus82 the value should be injected into proxy.php at line 443
the enum value was defined at https://github.com/curl/curl/blob/master/include/curl/curl.h#L2266