Happy new year all.
Why does my response add a load of spaces?
I know I can just put trim on the end of my readtoend but what is causing those extra spaces and is there a way to stop it?
Regards
Why does my response add a load of spaces?
I know I can just put trim on the end of my readtoend but what is causing those extra spaces and is there a way to stop it?
Code:
Dim stream As Stream = request.GetRequestStream()
stream.Write(data, 0, data.Length)
stream.Close()
Dim response As WebResponse = request.GetResponse()
stream = response.GetResponseStream()
Dim sr As New StreamReader(stream)
TextBox7.Text = sr.readtoend
Regards