I'm trying to copy a file using the whole URL (from one URL to my server). I've tried with fopen, but that doesn't seem to work. Any clever ideas on how to do this? Anybody got an example lying around?
There are times when I have encountered the need to decompress a response from a PHP request.
This is how it's done, but you must have control of the request and you can set the Accept-Encoding header.