How to post a file content with wget in a post variable?

前端 未结 1 1351
既然无缘
既然无缘 2021-01-13 02:14

I have a very simple php script :


I\'m trying to post the conte

1条回答
  •  半阙折子戏
    2021-01-13 02:26

    Do you really need wget? Actually upon reading the wget man page ... wget can't do what you want it to do.

    You can use curl

    curl -F"operation=upload" -F"file=@myfile" http://localhost:9000/index.php
    

    Get the file with:

    
    

    0 讨论(0)
提交回复
热议问题