I have a windows application which listens on 9002 port via system.net.socket.
If clients send the request over http url like that:
http://localhost:9002/projectName/doSomething
then in my ReceiveCallBack method the received data is:
POST /projectName/doSomething HTTP/ 1.1
Accept: * / *
Origin: http://localhost
Accept-Language: tr-TR
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0) like Gecko
Host: localhost:9002
But if they send the request over https url which you can see below:
https://localhost:9002/projectName/doSomething
then the received data is something like:
\0?\0\0?U:vv?W?????????T??k#?=??? v\tci\0\0,?(?'??\0=\0<\05\
I tried to use UTF8 encoding to convert this data in a readable format and searched over the Internet but I could not find the solution.
What is the way of receiving a readable data over HTTPS requests?
Thanks