How do I ignore a moved-header with file_get_contents in PHP?

后端 未结 3 545
无人及你
无人及你 2020-12-03 23:59

I have programmed a simple content-user, that uses file_get_contents, but unfortunately for my IP the site now gives a 302 error that forwards to an image. For all other use

3条回答
  •  粉色の甜心
    2020-12-04 00:43

    There is no content there. The redirect happens in the HTTP response before any content would be sent.

    The server decides what you get to see (or not).

提交回复
热议问题