开发者

Using CURL to post form data to a webpage [closed]

开发者 https://www.devze.com 2023-03-08 12:07 出处:网络
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broa开发者_Python百科d, or rhetorical andcannot be reasonably answered in its current for
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broa开发者_Python百科d, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 11 years ago.

I need to post one attribute value present in a form to server using curl.

<form action="process.php" method="post">
     <input tupe="text" name="userName" />
</form>.

Now I want to post this form to the server. How can I achive it using curl.


you can use the option "-d" for posting data.

curl -d "userName=narendra" http://example.com/process.php
0

精彩评论

暂无评论...
验证码 换一张
取 消