Moharrer
Moharrer

Reputation: 153

Reverse proxy using ARR (Application Request Routing) - POST method does not work

We are trying to setup a reverse proxy mechanism using ARR (Application Request Routing) and URL Rewrite. The rewriting is working fine when we use GET Method request but when we send Post for method with this content type (x-form-urlencoded) request, ARR does not return any response. How can I solve this problem?

 <rewrite>
      <rules>
            <rule name="InboundGeneral" enabled="true" stopProcessing="true">
                <match url="^(.*)" />
                <conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
                <action type="Rewrite" url="http://localhost:29341/{R:1}" logRewrittenUrl="true" />
            </rule>
      </rules>
    </rewrite>

Upvotes: 2

Views: 2253

Answers (1)

albattran
albattran

Reputation: 1907

This is an old question, but I found it when I was looking for a solution to the same problem I had.

I have discovered that the problem was due to a conflict between ARR and ASP.net MVC running on the same site. It turns out, that if you process request parameters for whatever reason in your main site (e.g. filters, or global.asax) it will clear out the post parameters in the request sent by ARR, and hence resulting in a timeout.

You can solve it in one of two ways:

  1. Put ARR in a separate process (if you can)
  2. Or make sure whatever filter you have checks the path being used in ARR and avoid touching the request parameters.

Upvotes: 3

Related Questions