title: Upload a URL as a file using PHP curl
body: <p>I have images that are hosted on a CDN, and I want to upload that image to some other system via their API. Normally I would just use curl and put an @ character in front of the file to upload. Since this is a URL, that won't work since it expects the file to be local. I don't want to copy it local first since the files could be videos and that could be time consuming.</p>
  
  <p>It seems there should be a way to do this with PHP curl. I'm open to using sockets instead, but I'm not sure how to simulate how curl does the submission.</p>