When we say "|sh can be detected on the server", this is not it. What you wrote is no different from `curl -o /tmp/file`.
I'd love to hear the mechanism that the server would use to do that, if you have the time!
Or the script could also signal through an active mechanism, a different innocuous-looking HTTP request that makes the server switch the content to a malicious payload if it happens at the same time.