2 Answers
- Newest
- Most votes
- Most comments
0
Hi,
You should add the following line curl_setopt($curl, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1);
(assuming that you use curl package in your PHP code and that should fix your issue.
Some older APIs etc. don't appear to be compatible with the latest HTTP version (v2). The newer version of CURL will use this protocol by default and as a result will fail.
Best,
Didier
0
I tried this earlier , after adding this the page will start keep loading and after some time it will just timeout... So not solving the problem.
just to tell, same PHP code working and getting proper response from the API if i run PHP code on Google cloud instance (Apache + PHP) like it is working on local. Is there any constraint on AWS security or some thing else.
answered 20 days ago
Relevant content
- asked 2 years ago
- AWS OFFICIALUpdated 5 months ago
- AWS OFFICIALUpdated 5 months ago
- AWS OFFICIALUpdated 4 months ago
- AWS OFFICIALUpdated 6 months ago