PHP: Is there a way to change the request address?

For some reason, if I request a file using a URL, for example:

http: //localhost/proxy.php? url = http: //anintranetsite/file.jpg

It works! I can get the file. But if I use,

http://127.0.0.1/proxy.php?url=http://anintranetsite/file.jpg

I can not make it work. I don’t understand what is happening ... Any thoughts on what could go wrong?

thanks

+3
source share
2 answers

It looks like your browser has configured proxies incorrectly.

Aka "No proxy for" should contain localhost AND 127.0.0.1

+1
source

/. localhost, , , 127.0.0.1

+1

Source: https://habr.com/ru/post/1719574/


All Articles