 <p>There is no 100% solution for this issue. For example, if the response status is determined on PHP side, it usually will give you contents together with the status whatever request headers you send.</p> <p>Still you could play with "range" request headers to ask for the first bytes of the content, still this must be supported by the server backend.</p>