是否有可能做一个跨页的POST到ASP.NET,从静态的HTML表单? [英] Is it possible to do a cross page POST to an ASP.NET, from a static HTML form?

查看:114
本文介绍了是否有可能做一个跨页的POST到ASP.NET,从静态的HTML表单?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建具有&LT一个静态的HTML页面;表格方式> 该职位,以第三方的ASP.NET网站

I am trying to create a static HTML page which has a <form> which posts to a 3rd-party ASP.NET website.

在目标网站使用ASP.NET web表单这可能吗?

Is this possible when the target website uses ASP.NET webforms?

推荐答案

这是绝对有可能的。您可以发出一个POST到任何网站,任何地方。 (当你设计一个从网络商家,如贝宝接受员额应用程序请记住这一点;-)确保你知道哪里有POST的来源。)

This is absolutely possible. You can issue a POST to any website, anywhere. (Keep this in mind when you're designing an application that accepts POSTs from a web merchant such as PayPal ;-) make sure you know where the POST is coming from.)

该网站是否会接受你的要求,当然,高达但是服务器端code的编程。如果要发布到ASP.NET的WebForms应用程序和应用程序不是设计用来接受第三方的帖子,那么你将有一个很难让你的POST参数看起来像他们来到马来回页的WebForms。例如,网站将寻找加密视图状态,等等。

Whether or not the website will accept your request, of course, is up to however the server-side code was programmed. If you're POSTing to an ASP.NET WebForms app and the app wasn't designed to accept third-party POSTs, then you're going to have a hard time making your POST parameters look like they came fro ma WebForms page. For example, the website will be looking for the encrypted viewstate, among other things.

您可以使用萤火虫或其他一些工具来嗅探从web表单应用程序中的POST数据,然后复制在静态HTML页面的数据....它可能工作。

You could use firebug or some other tool to sniff the POST data from the webforms app, and then replicate that data in your static HTML page .... it might work.

你有没有在ASP.NET Web表单应用程序在所有的编程控制?

Do you have any programming control over the ASP.NET Webforms app at all?

这篇关于是否有可能做一个跨页的POST到ASP.NET,从静态的HTML表单?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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