我需要使用curl 将表单中存在的一个属性值发布到服务器。
<form action="process.php" method="post">
<input tupe="text" name="userName" />
</form>.
现在我想将此表单发布到服务器。我怎样才能使用curl来实现它。
最佳答案
您可以使用选项“-d”来发布数据。
curl -d "userName=narendra" http://example.com/process.php
关于java - 使用 CURL 将表单数据发布到网页,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6124478/