J
Jeroen-bart Engelen
Hello,
I'm currently writing an application that calls a RESTful webservice.
One of the parameters to an API call is the URL of some site. This
must include the protocol thingy in the beginning. However, the Uri
class *insists* on removing double slashes, so my
"http://somewebsite.com", always becomes "http:/somewebsite.com". Which
does not work for the API I try to call. Is there anyway to get around
this? My main problem is with the WebRequest.Create() function, I guess
it takes the string I provide and creates an Uri object for it's own
use.
Although this behaviour is written in the documentation, this seriously
impacts some webservices and I consider it a bug (bug sounds better
then bad design decision).
Jeroen-bart Engelen
I'm currently writing an application that calls a RESTful webservice.
One of the parameters to an API call is the URL of some site. This
must include the protocol thingy in the beginning. However, the Uri
class *insists* on removing double slashes, so my
"http://somewebsite.com", always becomes "http:/somewebsite.com". Which
does not work for the API I try to call. Is there anyway to get around
this? My main problem is with the WebRequest.Create() function, I guess
it takes the string I provide and creates an Uri object for it's own
use.
Although this behaviour is written in the documentation, this seriously
impacts some webservices and I consider it a bug (bug sounds better
then bad design decision).
Jeroen-bart Engelen