重定向POSTDATA [英] redirecting postdata

查看:215
本文介绍了重定向POSTDATA的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近从我们传统的ASP到asp.net服务器上升级的页

I've recently upgraded a page on our server from classic asp to asp.net

页面临危POSTDATA并将其保存到一个文件中。该页面使用我们的许多客户和URL(到ASP页)的硬coded到他们的软件。这意味着,我不能简单地换旧页面出新的。
我试图找到一种方法将客户端从旧的URL到新的重定向。
我知道你能做使用IIS一个简单的重定向,但这并不会导致POSTDATA被重定向。
我试着将文件设置为307临时重定向,当数据在FORMDATA但其他POST请求这个作品如使用MSXML库不工作的。

The page recieves postdata and saves it to a file. The page is used by many of our clients and the url (to the asp page) is hard coded into their software. This means that i cannot simply swap the old page out for the new one. I'm trying to find a way to redirect clients from the old url to the new one. I know you can do a simple redirect using IIS, but this does not cause the postdata to be redirected. I've tried setting the file to a 307 temporary redirect, this works when the data is in the formdata but other post requests such as ones using the msxml library do not work.

基本上我需要找到在IIS的方式来转发从一个网页到另一个POST请求,而不会丢失任何身体。

Basically i need to find a way in IIS to forward a post request from one page to another without losing any of the body.

推荐答案

我发现是使用IIS中的临时重定向code,虽然这并没有为POSTDATA从MSXML库发起工作的最佳方法。最后,我不得不在.NET中写了一个COM库使用system.encoding库做的辛勤工作,然后在ASP中引用COM库

The best way i found was to use the temporary redirect code in IIS, although this didn't work for postdata originating from the msxml library. In the end i had to write a COM library in .NET to do the hard work using the system.encoding libraries and then reference the COM library in asp

这篇关于重定向POSTDATA的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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