URL POST参数
我想用C#语言制作一个程序,它将在网站上运行/登录并做一些事情。我正在使用Fiddler查看应该使用哪个URL 因此,我在《小提琴手》中写道:URL POST参数,url,post,Url,Post,我想用C#语言制作一个程序,它将在网站上运行/登录并做一些事情。我正在使用Fiddler查看应该使用哪个URL 因此,我在《小提琴手》中写道: https://landfill.bugzilla.org/bugzilla-tip/post_bug.cgi?Bugzilla_login=mymail@hotmail.com&Bugzilla_password=mypassword&product=WorldControl&version=1.0&component=
https://landfill.bugzilla.org/bugzilla-tip/post_bug.cgi?Bugzilla_login=mymail@hotmail.com&Bugzilla_password=mypassword&product=WorldControl&version=1.0&component=WeatherControl&rep_platform=All&op_sys=All&priority=P2&bug_severity=normal&target_milestone=World 202.0&bug_status=CONFIRMED&assigned_to=mymail@hotmail.com&short_desc=bla
我是邮寄的。我收到一条消息,上面说:“您确定要提交这些更改吗?这可能会导致意外和不希望的结果。”
然后,有一个按钮显示“确认更改”。其在结果html页面中的代码为:
<form name="check" id="check" method="post" action="post_bug.cgi">
<input type="hidden" name="product"
value="WorldControl">
<input type="hidden" name="version"
value="1.0">
<input type="hidden" name="component"
value="WeatherControl">
<input type="hidden" name="rep_platform"
value="All">
<input type="hidden" name="op_sys"
value="All">
<input type="hidden" name="priority"
value="P2">
<input type="hidden" name="bug_severity"
value="normal">
<input type="hidden" name="target_milestone"
value="World 2.0">
<input type="hidden" name="bug_status"
value="CONFIRMED">
<input type="hidden" name="assigned_to"
value="mymail@hotmail.com">
<input type="hidden" name="short_desc"
value="bla">
<input type="hidden" name="token"
value="aGipS2Hfim">
<input type="submit" id="confirm" value="Confirm Changes">
要单击此确认按钮,我应该在Fiddler或浏览器中写入什么作为URL?您应该向URL提交帖子数据 POST数据应如下所示: 版本=1.2和组件=天气控制。。。。等 不要忘记对POST数据进行编码,并将内容类型设置为“application/x-www-form-urlencoded”
更新:当您使用“确认”按钮收到第一个答案时,将其解析为DOM并再次提交到同一URL。这应该与您单击“确认”按钮的行为相同。问题是URL中不应包含参数。这不是GET方法。您可以使用JavaScript实现这一点。例如,如果要在站点上发送第一个表单,可以使用表单集合表单[0]。提交()。但我认为这将发送表单输入中的数据。@Designer这不是web应用程序。我不能使用JS。@Designerr这不是web应用程序。我不能使用JS。我正在通过我在问题中写的URL提交帖子数据。问题是,我得到的结果有一个“确认”按钮,我需要按下它。我的URL应该是什么