51Testing软件测试论坛

 找回密码
 (注-册)加入51Testing

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 1279|回复: 0
打印 上一主题 下一主题

[原创] web_custom_request进行数据提交,有部分数据不能插入

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2014-11-18 14:51:32 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
使用web_custom_request进行数据提交,大部分数据都能插入,但是有部分数据不能插入,代码如下:(其中红色字体部分为插入失败的数据)

web_custom_request("RFPManagement.aspx_3",
                "URL={RootWebsite}{WebsiteName}/ChangeOrder/RFPManagement.aspx",
                "Method=POST",
                "TargetFrame=",
                "Resource=0",
                "RecContentType=text/html",
                "Referer={RootWebsite}{WebsiteName}/ChangeOrder/RFPManagement.aspx",
                "Snapshot=t286.inf",
                "Mode=HTML",
                "EncType=application/x-www-form-urlencoded; charset=utf-8",
                "Body=ctl00%24ScriptManager1=ctl00%24body%24upMain%7Cctl00%24body%24btnSave&__CSRFTOKEN={CSRFTOKEN_AddRFP_1}&ctl00%24hidfiedFunctionName=&ctl00%24body%24ChangeNumber%24txtAutoNumber=RFP%20ID%20to%20be%20Automatically%20Generated&ctl00%24body%24ChangeNumber%24hf="
                "&ctl00%24body%24PContractAutoID%24txtText=ABCABC%20Master%20-%20ABCABC%20Master&ctl00%24body%24PContractAutoID%24hfValue=1157&ctl00%24body%24VendorAutoID%24txtText=ABC%20-%20ABC%20Contracting%20Inc&ctl00%24body%24VendorAutoID%24hfValue=9"
                "&ctl00_body_IssueDate_wdDateTime_DrpPnl_Calendar1=%253Cx%2520PostData%253D%25222014x10x-1x-1x-1%2522%253E%253C%2Fx%253E&ctl00%24body%24IssueDate%24wdDateTime_hidden=%253CDateChooser%2520Value%253D%25222014x10x21%2522%253E%253C%2FDateChooser%253E"
                "&ctl00_body_IssueDate_wdDateTime_input=10%2F21%2F2014&ctl00%24body%24StatusID%24ddlPicklist=1&ctl00_body_AuthorizationStatusDate_wdDateTime_DrpPnl_Calendar1=%253Cx%2520PostData%253D%25222014x10x-1x-1x-1%2522%253E%253C%2Fx%253E&ctl00%24body%24AuthorizationStatusDate%24wdDateTime_h"
                "idden=&ctl00_body_AuthorizationStatusDate_wdDateTime_input=&ctl00%24body%24cstm_ReferenceNumber%24txtText=&ctl00%24body%24SubjectDesc%24txtText={RFPName}&ctl00%24body%24ReasonOfChange%24txtText=&ctl00_body_ReasonOfChange_ctl03_Data="
                "&ctl00%24body%24DescriptionOfChange%24txtText=&ctl00_body_DescriptionOfChange_ctl03_Data=&ctl00%24body%24cstm_EstimatedTimeChange%24txtDecimal=&ctl00%24body%24cstm_ProposedChangeAmount%24txtMoney=&ctl00%24body%24cstm_ProposedChangeAmount%24hfCurrencySymbol="
                "&ctl00%24body%24ContactName%24txtText=&ctl00%24shotcut=&ctl00%24hfMasterPage_ConfirmBoxExtenderClientID=ctl00_mpeConfirmBox&ctl00%24hfMasterPage_ConfirmBoxContentClientID=ctl00_dvConfirmBoxContent&ctl00%24hfMasterPage_AppPath=%2F{WebsiteName}%2F&hiddenInputToUpdateATBuffer_CommonToolkitScripts=1"
                "&__EVENTTARGET=&__EVENTARGUMENT=&__VIEWSTATE={VIEWSTATE_AddRFP_1}&__VIEWSTATEENCRYPTED=&__EVENTVALIDATION={EVENTVALIDATION_AddRFP_1}&__sectionIdHiddenField=&__ASYNCPOST=true&ctl00%24body%24btnSave=Save",
                LAST);


软件UI如下:


本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?(注-册)加入51Testing

x
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

本版积分规则

关闭

站长推荐上一条 /1 下一条

小黑屋|手机版|Archiver|51Testing软件测试网 ( 沪ICP备05003035号 关于我们

GMT+8, 2024-11-27 11:21 , Processed in 0.066007 second(s), 24 queries .

Powered by Discuz! X3.2

© 2001-2024 Comsenz Inc.

快速回复 返回顶部 返回列表