title: Examining received data with system.net.socket which comes over HTTPS
body: <p>I have a windows application which listens on 9002 port via system.net.socket. </p>
  
  <p>If clients send the request over http url like that:</p>
  
  <pre><code>http://localhost:9002/projectName/doSomething
  </code></pre>
  
  <p>then in my ReceiveCallBack method the received data is:</p>
  
  <pre><code>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
  </code></pre>
  
  <p>But if they send the request over https url which you can see below:</p>
  
  <pre><code>https://localhost:9002/projectName/doSomething
  </code></pre>
  
  <p>then the received data is something like:</p>
  
  <pre><code>\0?\0\0?U:vv?W?????????T??k#?=??? v\tci\0\0,?(?'??\0=\0&lt;\05\
  </code></pre>
  
  <p>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. </p>
  
  <p>What is the way of receiving a readable data over HTTPS requests?</p>
  
  <p>Thanks</p>