HTTP发布响应在cURL命令之后 [英] HTTP Post Response After a cURL command
问题描述
感谢您的帮助。
我想使用CURL命令行命令填充表单。
我的表单测试非常简单,用户文本输入,以及带有提交按钮的生日日期文本输入。
I want to fill a form with a CURL command line command. My form test is very simple, a user text input, and a Birthday Date text input with a Submit button.
当我运行命令:
curl --datauser = me& ; birthday = 2003/12/12& btnSubmit =提交http://www.myurl.com
html页面而不是通常显示名称为空白页面的响应页面:name
birthday:birthday
After that, I receive the html page and not the response page who normally show a blank page with name : name birthday : birthday
手动,我的页面工作正常,当我点击提交按钮,我看到结果页面出现。
Manually, my page is work well, when I click Submit button, I see the result page appear.
感谢
推荐答案
-X POST 使用curl命令行,以便将数据发布到URL。
Also add the -X POST
with your curl commandline so that it posts the data to the url.
这篇关于HTTP发布响应在cURL命令之后的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!