Web API - jak przesłać email w parametrze? Dostaję błąd 404

0

Witam serdecznie ;)

Dodałem do Web API - Owin authentication i pojawił się problem z przesyłaniem e-maila jako parametru url.
Wcześniej to działało, a wykorzystałem do tego zapis w web.config:

 <modules runAllManagedModulesForAllRequests="true">

Robiłem test Postmanem i zwykły string przechodzi, a string zawierający e-mail nie.

Próbowałem też z takim wpisem w web.config:

 <system.webServer>
    <handlers>
      <remove name="ExtensionlessUrlHandler-Integrated-4.0" />
      <remove name="OPTIONSVerbHandler" />
      <remove name="TRACEVerbHandler" />
      <add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="*" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0" />
    </handlers>
    <validation validateIntegratedModeConfiguration="false" />
    <modules runAllManagedModulesForAllRequests="true">
      <remove name="ApplicationInsightsWebTracking" />
      <add name="ApplicationInsightsWebTracking" type="Microsoft.ApplicationInsights.Web.ApplicationInsightsHttpModule, Microsoft.AI.Web" preCondition="managedHandler" />
    </modules>
  <rewrite>
    <rules>
      <rule name="Add trailing slash" stopProcessing="true">
        <match url="^(api/employees/.*\.[a-z]{2,4})$" />
        <action type="Rewrite" url="{R:1}/" />
      </rule>
    </rules>
  </rewrite>
  </system.webServer>

Proszę o pomoc.

1

Rozwiązałem problem (konkretnie przeszkadza tutaj znak "."), wystarczy w url zamiast:
api/users/[email protected]
używać
api/users/[email protected]/

I do tego w web.config:

  <modules runAllManagedModulesForAllRequests="true">

1 użytkowników online, w tym zalogowanych: 0, gości: 1