问题标签 [postdata]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
c# - 解析“查询字符串”格式数据的最简单方法
使用以下代码:
解析值的最简单方法是什么,最好不编写我自己的解析器?我正在寻找与Request.querystring["gameID"].
c# - 点击webcontrol的提交数据后获取Post数据
我使用 webcontrol 来查看网站内容表单。例如,从任何注册站点单击任何表单的提交按钮后。如何像萤火虫一样获取帖子数据?
这是我通过萤火虫获得的示例帖子数据
sitetitle=[$PostTitle$]¬ify=B&noprice=1&sitedescription=[$PostContent$]&sitecatid=11&subcatid=85&expire_days=29&cityid=1&subcity=Ba+%C4%90%C3%ACnh&submit_post=%C4%90%C4%83ng+tin&v=&siteid =&mode=&flag=&lptime=1345045566&quickpost=0
asp.net - Server.Transfer 丢失发布数据
我遇到了一个 Web 应用程序在 Server.Transfer 期间丢失发布数据的问题,但仅限于我们的生产环境。
表单由用户发布,然后发生 Server.Transfer,之后使用 postdata 生成响应。在我们的开发和暂存环境中一切正常,但在实时环境中,发布数据正在丢失。
数据仅在发生 Server.Transfer 时丢失 - 其他表单的发布数据被接受。
应用程序是 ASP.NET 4.0,Web 服务器是 IIS6。据我所知,配置是相同的,并且服务器已完全修补了 Windows 和 .NET Framework 更新。
任何建议表示赞赏。
login - Having problems when trying to login to a website using C++/cli
I've been roughly searching over the internet for some answers to my problem, but I still couldn't figure out how to log in to a website properly.
Firstly, I'm going to explain what I've done until this moment.
» I opened this website: http://side.utad.pt/cursos/einformatica/ upon which I want to log in.
» After opening its souce code, I found the Url that the Login form posts to is:
https://side.utad.pt/side-secure3/login.pl
I tried to open it but an Internal Error came out so I tried to access that url without /login.pl instead but i don't have permission to. As I can't get this Url working, I thought about using the first link itself.
» By using tamper data extension(Firefox) I found that there are 3 post arguments: sessionid, username and password. Username and password are input by the user himself.
To get sessionid, I simply searched for it inside source code and took it from there:
Until here, everything was fine apart from the Url problem.
» Started formatting all the data gathered(which I believe is the correct way):
» After that, I started working with the "body" of the code:
Am I doing it correctly until here?
» I wanted to check if i'm logged in or not, so I thought about getting another source code, but this time on pos-login page(can be accessed without logging in but we're always carried to that page after logging in):
Firstly, the first line does raise an exception - most of the times - but I don't know the cause: 'The server commited a protocol violation Section=ResponseStatusLine'
Secondly and lastly, when that line doesn't raise an exception, this does(cannot send a content-body with this verb-type)
Any ideas to get this working?
I think that the problem here is related to the cookies. I might have not saved them properly..
Thanks
jquery - Grails:request.JSON 是从哪里来的,我如何用 jQuery 的 .ajax() 或 .post() 把东西放在那里?
我有一个控制器,在?request 正文中需要一些 json?并用它做了很棒的事情:
所以我可以像这样用 cURL 打这个:
我的 grails 控制器打印:
到目前为止一切都很好,但是当我尝试使用 jQuery 执行此操作时,它会进入 params !!!
阅读了这两个问题: Setting the POST-body to a JSON object with jQuery
我对如何编写 .js 的最佳猜测是:
但是当我这样做时,我的控制器会打印:
我一定在 jQuery 上做错了什么。
更新:看起来这个白痴实际上遇到了同样的问题:How to get at JSON in grails 2.0但他没有面对 jQuery 问题,而是使用了 cURL 和 reqeust.JSON 的东西。真是个懒惰的家伙。
jquery - jqGrid自定义界面过滤
我有一个 jqGrid,它有一个内置的过滤器,我也有我自己的用于过滤网格数据的界面。我的界面是一个加载在对话框中的 jsp 页面。我在导航器中有一个按钮。点击按钮会显示一个加载了我的jsp搜索inetrface的对话框..我不知道如何将值从我的搜索界面jsp对话框传递到网格操作类..我需要一个例子来清楚地解释如何使用我的jsp对话框中的postData来最初的 gid 动作类..谢谢
iphone - 在 iPhone 中使用 HTTP POST 的 for 循环向服务器发送数据
我想批量发送到服务器上的数据。我必须一次发送带有 25 个字符串的 nsmutablestring 数据,然后获得响应,如果响应成功,则再次发送下一批。我正在使用 HTTPConnection 类。我使用的代码如下:
我通过以下方法得到响应
只有当我得到响应“SUCCESS”时,我才想继续循环。任何人都可以建议如何实现它。我对iOS编程很陌生。请帮忙
jquery - 在使用 jQuery 提交之前如何检查 POST 数据大小?
我有一个网络应用程序,允许用户添加多个图像,然后在他们按下“保存”按钮时一次性上传它们以及其他数据。我正在尝试在发送 POST 数据之前计算它的总大小,这样我就可以将请求分成多个,以避免遇到 PHPpost_max_size或max_file_uploads错误。
目前,我使用此代码仅使用 HTML5 File API(属性)检查图像的整体大小:size
我想通过包括其余的 POST 数据来更精确。这可能吗?
grid - Kendo UI Grid 内联编辑发布的数据为空
我正在关注 MVC4 中的演示网格内联编辑,但我发现插入/编辑控制器中发布的网格数据为空。
cshtml代码如下:
控制器代码如下:
发布的数据(“组”)为空,我无法得到它。
apache - 使用 post 方法 php 获取数据的问题
我使用 cakephp 创建了一个网站,其中表单元素是动态的。我的表单中有大约 400 个单选按钮和文本。正确生成和提交的表单将在我的本地系统中产生所有价值。
当我在实时服务器上测试此功能时,我没有获得所有 400 单选按钮的数据,它在大约 250 左右后停止。如果我减少循环并在 200 以下进行,那么一切都很好。
在谷歌上搜索时,我在 php 中设置了发布数据大小,但它没有用。
如果需要在相关的 apache 服务器中进行任何类型的设置,请告诉我。