Can't one do `curl $url | sh -c 'cat > /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.