由卷曲的Andr​​oid视图状态值误差senting发布数据 [英] viewstate value error senting post data by curl android

查看:151
本文介绍了由卷曲的Andr​​oid视图状态值误差senting发布数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

的IAM一个ASPX网站的用户,我最近做了一个shell脚本,从网站,剧本做工非常精细2-3 days..however后对停止运行下载的PDF文件...的错误是视图状态验证错误.iam在shell编程一个完整的小白..
视图状态值i通过使用curl命令捕获:

iam a user of a aspx website ,i recently made a shell script to download a pdf file from the website,the script work very fine 2-3 days..however it stops working after that...the error was 'viewstate validation' error .iam a complete noob in shell programming.. Viewstate value i captured by using curl command:

/ wEPDwUJOTcyNDMyNDExZGTFH + 8YURsFdHWIPx + 4glo2ovFz2w ==

/wEPDwUJOTcyNDMyNDExZGTFH+8YURsFdHWIPx+4glo2ovFz2w==

视图状态值i贴使用curl命令:

Viewstate value i posted using curl command :

/ wEPDwUJOTcyNDMyNDExZGTFH + 8YURsFdHWIPx + 4glo2ovFz2w ==

/wEPDwUJOTcyNDMyNDExZGTFH+8YURsFdHWIPx+4glo2ovFz2w==

视图状态值误差:

/ wEPDwUJOTcyNDMyNDExZGTFH 8YURsFdHWIPx 4glo2ovFz2w ==

/wEPDwUJOTcyNDMyNDExZGTFH 8YURsFdHWIPx 4glo2ovFz2w==

正如你所看到的错误页面显示犯规包含+符号的视图状态值,这是可能是视图状态验证错误的原因是什么?
但我正确地发布数据,通过使用卷曲command..bt我不知道为什么错误页面显示不正确的视图状态value.any帮助,可能是很多AP preciated
Web服务器可以阻止卷曲的要求吗?因为我用curl命令过于频繁
所以我改变了用户代理和IP地址仍然呈现视图状态错误的网页

As you can see the viewstate value shown by the error page doesnt contain '+' symbol,is this could be the reason for the viewstate validation error? But i post the data correctly by using curl command..bt i dont know why the error page shows an incorrect viewstate value.any help could be much appreciated Can the webserver blocked the curl request? Because i used the curl command too often So i changed the user agent and ip address still showing viewstate error webpage

推荐答案

而不是自动生成验证密钥是在ASP.Net默认显式地指定他们,如下图所示。这些密钥用于验证视图状态。

Instead of auto-generating the validation keys which is the default in ASP.Net specify them explicitly as shown below. These keys are used to validate view state.

此外,在您的aspx页面尝试在页面顶部添加这些到Page指令: ViewStateEncryptionMode =从不EnableViewStateMac =FALSE

Also, in your aspx page try adding these to Page directive at top of your page: ViewStateEncryptionMode="Never" EnableViewStateMac="false".

明确地生成自己的钥匙,因为它使用IIS管理器在这个网址讲解了安全功能:<一href=\"https://blogs.msdn.microsoft.com/vijaysk/2009/05/13/iis-7-tip-10-you-can-generate-machine-keys-from-the-iis-manager/\"相对=nofollow>生成的密钥IIS

Generate your own keys explicitly since its a security feature by using IIS Manager as explained at this URL: Generate Keys in IIS

<system.web>
<machineKey  
validationKey="21F090935F6E49C2C797F69BBAAD8402ABD2EE0B667A8B44EA7DD4374267A75D7
               AD972A119482D15A4127461DB1DC347C1A63AE5F1CCFAACFF1B72A7F0A281B"           
decryptionKey="ABAA84D7EC4BB56D75D217CECFFB9628809BDB8BF91CFCD64568A145BE59719F"
validation="SHA1"
decryption="AES"
/>
</system.web>

这篇关于由卷曲的Andr​​oid视图状态值误差senting发布数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆