Answer the question
In order to leave comments, you need to log in
How to fix file_get_contents giving HTTP request failed! HTTP/1.1 426 Upgrade Required?
Good evening!
When trying to get the content of the page using the construct:
file_get_contents($url, null, stream_context_create(['https' => ['method' => 'GET']]));
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question