Web Connection
How to prevent this error server when send wrong params like %3F only
Gravatar is a globally recognized avatar based on your email address. How to prevent this error server when send wrong params like %3F only
  Jesús
  All
  May 8, 2020 @ 08:56am

Hello,

we have an API built with webConnection 6.2 and i can't catch the error response when someone calls with 'wrong get params' to my endPoint for example like in this url occurs when i append (%3F) https://weblog.west-wind.com/%3F

but i get a IIS error response and not a webConnection error respond, it's possible anyway catch this error?

Gravatar is a globally recognized avatar based on your email address. re: How to prevent this error server when send wrong params like %3F only
  Rick Strahl
  Jesús
  May 8, 2020 @ 12:48pm

I think the %3F URL is an invalid URL so that will never go to your application. So no you can't capture that - IIS will always front that.

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: How to prevent this error server when send wrong params like %3F only
  Jesús
  Jesús
  May 9, 2020 @ 01:10am

I really appreciate your answer.

In this case, I should establish in IIS a suitable configuration for 4xx clients erros and 5xx server errors with structured information of the error in its content.

Best regards, Jesús

Gravatar is a globally recognized avatar based on your email address. re: How to prevent this error server when send wrong params like %3F only
  Rick Strahl
  Jesús
  May 9, 2020 @ 03:25am

Yes that's right.

+++ Rick ---

© 1996-2024