Answer the question
In order to leave comments, you need to log in
Why does nginx return Content-Length: 0 when requesting js files via php cURL?
I wrote a simple php proxy that accesses the server and returns pages using cURL. When the page is loaded, instead of the javascript file, an empty screen with the header Content-Length: 0 comes up. At the same time, when directly accessing the script url through the same proxy - proxy.com/js/jquery.min.js - the script is returned normally.
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