php - 隐藏post参数,phpcurl

标签 php http post curl

我正在尝试复制 http://www.ebayclassifieds.com/m/PostAd?scrid=3465450-2253858851033189948 上的浏览​​器发布参数但由于某些原因,我找不到其中 2 个值的来源。参数是 btn-previwe-ad.x 和 btn-预览-ad.y 但我找不到 html 源本身的参数或任何隐藏值。

最佳答案

它们表示单击时鼠标指针相对于元素的 x 和 y 位置,并在通过 <input type="image"> 提交表单时自动添加。点击:

<input name="btn-previwe-ad" ... alt="Preview your ad" type="image">

来自HTML 4.02 specification (Source):

When a pointing device is used to click on the image, the form is submitted and the click coordinates passed to the server. The x value is measured in pixels from the left of the image, and the y value in pixels from the top of the image. The submitted data includes name.x=x-value and name.y=y-value where "name" is the value of the name attribute, and x-value and y-value are the x and y coordinate values, respectively.

关于php - 隐藏post参数,phpcurl,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3033603/

相关文章:

http - Camel如何绕过请求头进入http dsl组件请求?

c# - Angular 2 post 数据在 asp.net MVC 中为空

php - 如何在字符串 wordsolver 应用程序中的简单 mysql/php 单词中的字符串中找到单词匹配项?

php - MySQL 查询未按预期返回

php - SQL自动递增同一张表多次

http - 在浏览器中运行 cURL 命令

PHP代码访问MySQL数据库不回显

javascript - AngularJS 工厂、服务和 HTTP 使用

java - Tomcat 7 接受不完整的数据 - 期待 SocketTimeoutException

php - 如何使用$_GET或$_POST变量来区分每种类型的请求?