问题
I'm extending a custom platform which does 500+ lines of tests on an uploaded file. I don't want to copy-paste those tests because of future updates.
Can I do anything else besides calling the page from within itself but with image upload via cURL?
回答1:
I ended up resubmitting $_POST vars from within the same page to itself, via cURL.
来源:https://stackoverflow.com/questions/12269913/how-to-fake-files-and-fool-move-uploaded-file