I am too close to this situation to see the solution clearly, therefore I seek the wisdom...
I've tried many variations of the 'put', but it seems that nothing is working. I want to bypass the CGI server completely and move the resized file driectly to the destination server.