title: python error TypeError: a bytes-like object is required,not 'str'
body: <pre><code>connectionSocket.send("%s\r\n%s\r\n\r\n" %(first_header.encode(encoding='utf_8'), following_header.encode(encoding='utf_8')))
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/Dyta9.jpg" alt="enter image description here"></p>