从表单生成可能的 URL

发布于 2024-07-15 00:01:35 字数 647 浏览 6 评论 0原文

我正在尝试获取此页面上的表单生成的所有 URL(然后获取数据) - http://www.vodafone.in/_layouts/servicecallertunes.aspx 收效甚微。

我已经在 Firefox 3.0.5、Ubuntu 上安装了 HTTP Headers(0.14) 插件。 但生成的 URL 非常奇怪而且很长。 例如:(

POST /_layouts/servicecallertunes.aspx __EVENTTARGET=CTTunes1%24ddlTunesSubCategories&__EVENTARGUMENT=&__LASTFOCUS=&__VIEWSTATE=M0ZAMFvA%2Baq58jd57T84z0fdR%2B1tju00M3YD5nagIHQB48ihJiAoFxS%2B%2Ff8CvaAigdH2a4

持续超过 5000 个字符)

有哪些可能的可编程选项可以从上述表格中获取数据? 我目前唯一的想法是生成所有可能的 URL,然后获取数据。

提前致谢。 巴特·J

I am trying to get all the URLs (and then get the data) that are generated by the form on this page - http://www.vodafone.in/_layouts/servicecallertunes.aspx with little success.

I have installed HTTP Headers(0.14) addon on Firefox 3.0.5, Ubuntu. But the resultant URL is very weird and pretty long.
Eg:

POST /_layouts/servicecallertunes.aspx __EVENTTARGET=CTTunes1%24ddlTunesSubCategories&__EVENTARGUMENT=&__LASTFOCUS=&__VIEWSTATE=M0ZAMFvA%2Baq58jd57T84z0fdR%2B1tju00M3YD5nagIHQB48ihJiAoFxS%2B%2Ff8CvaAigdH2a4

(goes on for more than 5000 characters)

What are the possible programmable options to get data from the above form? My only idea currently is to generate all the possible URLs and then get the data.

Thanks in advance.
Bart J

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

歌入人心 2024-07-22 00:01:35

这是一个 ASP.NET 页面,这就是您在其中看到 __VIEWSTATE 的原因。

顾名思义,视图状态对有关视图状态的信息进行编码,以尝试使创建表单的程序员“感觉”有状态的无状态 HTTP 连接。

看起来实际上有一个 firefox 插件 在那里,您可以解码视图状态并查看其中的信息。 您也许可以使用它来找出真正提交的内容,并制作您自己的视图状态以获得您想要的行为。

或者您可以生成所有可能的 URL - 这可能更容易:)

This is an ASP.NET page, which is why you see the __VIEWSTATE in there.

As the name suggests, the viewstate encodes information about the state of the view to try to make a stateless HTTP connection "feel" stateful to the programmers who created the form.

Looks like there's actually a firefox plugin out there that will let you decode the viewstate and view the information inside if it. You might be able to use that to figure out what is really getting submitted and craft your own viewstate to get the behavior you want.

Or you could just generate all the possible URLs - which might be easier :)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文