Mind explaining why? I just tried it, and it works fine.
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.