Windows PowerShell Home
Invoke-RESTMethod truncates final period of URIs
11/30/2012 7:59:04 AM
User(s) can reproduce this bug
When the final non-slash character of the request URI being passed to invoke-restmethod is a period, PowerShell is removing the period and sending the modified URI on to the web server. This is confirmed with network traces and does not occur when calling the URI directly via a web browser.
This happens when the last non-slash character is a period or a URI escaped "%2E".
How often does this happen?
Have you seen this problem before in this product?
I don't know if this issue existed previously
1) Invoke-RestMethod -uri https://server/path/path/Application+Mappings/A.R.E.S./ -verbose
Confirm via the verbose output (and via network trace/server logs) that the URI being called is "https://server/path/path/Application+Mappings/A.R.E.S./" and not "https://server/path/path/Application+Mappings/A.R.E.S/"
to post a comment.
Please enter a comment.
to post a workaround.
Please enter a workaround.
© 2013 Microsoft