简体   繁体   中英

is it possible to simulate file upload form?

I'm trying to test a file upload function. This function I'm trying to test is where the file data is posted to from a form.

Is there a way to test this function without the need of an upload form?

You can construct an HTTP programatically with the cURL library . Google throws up this example .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM