crenzz 发表于 2013-11-26 10:29:57

发布模块编写失败

本帖最后由 crenzz 于 2013-11-26 10:32 编辑

程序发布是aspx的页面

通过学习教程 粘贴抓包获取数据
__EVENTTARGET=&__EVENTARGUMENT=&__VIEWSTATE=%2FwEPDwUKMTM3OTgxOTg5NA9kFgICAw9kFgQCAQ8PFgIeBFRleHQFDOa3u%2BWKoOaWh%2BeroGRkAgMPZBYEAgEPZBYMAgEPZBYCAgEPZBYIZg9kFgICAQ9kFgICAQ8QZBAVDg%2For7fpgInmi6nmoI%2Fnm64G5paH56ugCeKUlOWto%2BiKggnilJTppbXmlpkM4pSU6bG856eN57G7CeKUlOmSk%2BazlQnilJTlnLDngrkJ4pSU5b%2BD5b6XCeKUlOa4lOWFtwzilJTpsbzmlofljJYJ4pSU6LWE6K6vD%2BKUlOWPsOmSk%2BernuaKgAzilJTpsbzoj5zosLEJ4pSU5YWs5ZGKFQ4BKgExAjEzAjE0AjE1AjE2AjE3AjE4AjE5AjQzAzEyNAMxMjUDMTI2AzEyOBQrAw5nZ2dnZ2dnZ2dnZ2dnZ2RkAgMPZBYCAgEPZBYEAgMPEGRkFgECBGQCCQ8PZBYCHghSZWFkT25seQUEdHJ1ZWQCBQ9kFgICAQ9kFgICAQ8QDxYCHgtfIURhdGFCb3VuZGdkEBUFBuaOqOiNkAbng63pl6gG5bm754GvBueyvuWTgQblpLTmnaEVBQbmjqjojZAG54Ot6ZeoBuW5u%2BeBrwbnsr7lk4EG5aS05p2hFCsDBWdnZ2dnZGQCCA9kFgICAQ9kFgICAQ8PZBYCHwEFBHRydWVkAgcPDxYCHhRWYWxpZGF0aW9uRXhwcmVzc2lvbgURXlxkKyhcLlxkezEsMn0pPyRkZAINDw8WAh8DBRFeXGQrKFwuXGR7MSwyfSk%2FJGRkAhMPDxYCHwMFEV5cZCsoXC5cZHsxLDJ9KT8kZGQCGQ8PFgIfAwURXlxkKyhcLlxkezEsMn0pPyRkZAIfDw8WAh8DBRFeXGQrKFwuXGR7MSwyf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oVT33U6Pbc2zFb%2B77HPhkbdBbeHVbhFGucwrE1rt7ugstB2UyD%2BoySn1qU4fXP4LgudITiI8CSmvu7RG%2BJghiMhwf%2BYLFSsWuYtJSothg6lHDzOHjG%2BURd0Iy0O600s07cj%2BgskUjMICg2rU%2F3%2B4V8bo%2FvUXchKPP5wX%2B1oQ5wOzIz8GJKq%2Bswkvz1jNGV55xZ%2F6li7E0XFUkQnHw%3D%3D&DdlChannel=16&TitleIntact=111111111111111111111111&Subheading=2222222222222&IncludePic=0&TbColor=&Author=%E7%B3%BB%E7%BB%9F%E7%AE%A1%E7%90%86%E5%91%98&CopyFrom=333&Keyword=4444&Intro=55555&DefaultPicUrl=&Content=%3Cp+align%3D%22center%22%3E%0D%0A%096%3Cem%3E66666%3C%2Fem%3E%0D%0A%3C%2Fp%3E&TbPrice=0&TbPayScore=0&TbPayExp=0&TbPresentScore=0&TbPresentExp=0&BtnAdd=





提取之后
表单名
__EVENTTARGET
__EVENTARGUMENT
__VIEWSTATE   
__EVENTVALIDATION
。。。。。。。。

测试发布报错报错aspx的页面错误(黄颜色页面)
然后删除
__VIEWSTATE   
__EVENTVALIDATION
也会报错但是在内置浏览中显示的时候可以看到界面



网站的提交按钮是这样的   其实提交的时候执行 javascript 的事件
<input type="submit" class="Btn BtnAdd" id="BtnAdd" onclick="javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions(&quot;BtnAdd&quot;, &quot;&quot;, true, &quot;&quot;, &quot;&quot;, false, false))" value="" name="BtnAdd">



我该怎么做    目前我只会
粘贴抓包获取数据


自动抓取发布数据包跟提取post 表单发布数据我都不会      
请老师指教!!!!!!!!!!!


303718 发表于 2013-11-26 12:51:16

__VIEWSTATE   
__EVENTVALIDATION
是随机值,必须要的。建议多看看教程和下载别人的模块做参考。学多了就会了。

crenzz 发表于 2013-11-26 14:12:26

因为才接触火车采集器的时间不长,也看了部分教程。
如果实在不行我可以直接采集到数据库中吗?   

303718 发表于 2013-11-26 17:10:22

可以直接发到数据库里去的,火车头也要数据库入库模块的。

crenzz 发表于 2013-11-26 17:13:28

嗯已经成功写入数据库了
   大致思路清楚了
对了我看了discuz!x3级教程   是女的讲的      那个视频效果不是很好    声音跟图像错位了
页: [1]
查看完整版本: 发布模块编写失败