HttpWebRequest and Uri change requestUri
c#, httpwebrequest, uri
Solution
It seems that this is a known issue, but unfortunately remains unsolved. This was discussed a few months ago in the following Stack Overflow post:
- HttpWebRequest to URL with dot at the end
From .NET Framework Dev Center - Bug in Uri class with periods:
This is a known bug. This was actually discussed on these forums not too long ago. An MSFT employee acknowledged the problem and stated that it will be considered for a future release.
Problem
I have one problem with HttpWebRequest and Uri class of .NET framework (i use 3.5 version). When i try to do a simple request to page with url like this http://somedomain.net/-hello-world:misc./Items.bok, Uri remove "." before last "/". Is there any ability to prevent it. Thanks in advance.