There is a string after encryption
DaNiPoG
I try to send it to the server using the POST method, but a completely different line arrives at the server. Here is the line that comes to the server.
nGrJ51VWvB4foOyTrDnBegpyDpY9W / cKNYc3S0TFnuIZGGxOs4YRbbiONQeFKvxYIsxzVLZEtnHSzk8d21AHGcGYcSNFENCxVBy8i2IGDKEzvl5vQ1hcGzzwXMjyoTYsfjkP6DSqSc4PIo2T / S 9zEC3WYzRuyoXhMq / N62RxD4 =
When sending this string, a transfer is made to the byte [] array, which apparently "breaks" it.
byte[] sentData = Encoding.UTF8.GetBytes(Data); req.ContentLength = Data.Length; Stream sendStream = req.GetRequestStream(); sendStream.Write(sentData, 0, sentData.Length); sendStream.Close(); How to fix this problem?