tinify-php icon indicating copy to clipboard operation
tinify-php copied to clipboard

Use HTTP Post when retrieving result

Open tijmenbruggeman opened this issue 8 months ago • 0 comments

When fetching the result of a compression, users call the method result(). This will do a request to an url like: https://api.tinify.com/output/<randomstring> This will resolve to a file.

Because it is possible to add commands to this request such as and other commands, the result would be a GET request with a body. Although this is possible, it is not recommended.

Therefor we should change the method to a POST. Shouldn't be a breaking change so patched the version.

tijmenbruggeman avatar May 08 '25 07:05 tijmenbruggeman