【问题标题】:IIS7.5 URL Rewrite : do not translate POST to GETIIS7.5 URL 重写:不要将 POST 转换为 GET
【发布时间】:2013-02-03 14:18:10
【问题描述】:

我有一组具有公共基础 uri 的 URI,其中相对 uri 的第一段需要转换为各种端口:

http://base-uri/service1/*  =>  http://base-uri:3000/service1/*
http://base-uri/service2/*  =>  http://base-uri:3001/service2/*

GET 和 POST 都将定向到这些 URI。

是否可以配置 IIS 7.5 URL 重写规则以使 POST 请求继续为 POST ? (即不翻译为 GET)

【问题讨论】:

  • 有幸得到答案吗?

标签: post iis-7 url-rewriting iis-7.5 url-rewrite-module


【解决方案1】:

您需要为此安装Application Request Routing 模块。您不能重定向客户端,因为重定向意味着客户端应该执行的下一个请求是 GET。所以你必须将请求代理到其他服务器/端口。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2012-04-02
    • 2014-12-30
    • 1970-01-01
    • 1970-01-01
    • 2020-06-21
    • 1970-01-01
    • 1970-01-01
    • 2019-04-19
    相关资源
    最近更新 更多