Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HttpWebRequest and Uri change requestUri

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.

like image 217
iburlakov Avatar asked Mar 17 '26 05:03

iburlakov


1 Answers

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.

like image 57
Daniel Vassallo Avatar answered Mar 18 '26 18:03

Daniel Vassallo