Fiddler composer specify datetime parameter

179 views
Skip to first unread message

Cristina Garbacea

unread,
Jun 20, 2016, 3:44:49 PM6/20/16
to Fiddler

I would like to pass to my webservice a datetime parameter using Fiddler. If I simply specify the date

    https://localhost:44385/api/test/created_start_date/2013-03-21

it works as expected, however when i add the time

    https://localhost:44385/api/notes/created_start_date/2013-03-21T00:00:00

it crashes with the message

    A potentially dangerous Request.Path value was detected from the client (:). 

Is there any workaround to this? I am using ASP.NET Web Api (target framework 4.5.2). Thank you!

Michael

unread,
Jun 20, 2016, 4:16:04 PM6/20/16
to Fiddler
That's a well-known issue. Basically a range of special characters including the colon (:) will cause this condition. Is it possible to send the date time as  URL parameter instead of being part of the route?, a workaround might be send ticks instead https://msdn.microsoft.com/en-us/library/system.datetime.ticks(v=vs.110).aspx



EricLaw

unread,
Jun 21, 2016, 8:58:50 PM6/21/16
to Fiddler
To be clear, the server has an ASP.NET feature enabled that rejects colons and other "special" characters; this has nothing to do with Fiddler itself. If you replace the : with %3a, is there a change?
https://localhost:44385/api/notes/created_start_date/2013-03-21T00%3a00%3a00

Reply all
Reply to author
Forward
0 new messages