I am sending a request from one project to another:
WebRequest request = WebRequest.Create(UrlTemplate); request.Timeout = 500000; request.Method = WebRequestMethods.Http.Post; request.ContentType = ContentType; byte[] postData = System.Text.Encoding.ASCII.GetBytes(data); request.ContentLength = postData.Length; Stream newStream = request.GetRequestStream();
Well, in the function installed in UrlTemplate , I get the correct string (which I send to the data), but the problem starts when the string contains special characters.
If line: 12&34
What I get in the function: 12 .
If line: 12+34
What I get in the function: 12 34 .
I will be happy to know if this happened to some of you and how you decided it. Thanks in advance.
source share