title: What is wrong with urllib.request.Request(url=,data)
body: <p>I test the code from <a href="http://docs.python.org/py3k/library/urllib.request.html" rel="nofollow">http://docs.python.org/py3k/library/urllib.request.html</a> on my computer(Ubuntu 10.04 and python 3.2)</p>
  
  <pre><code>&gt;&gt;&gt; import urllib.request
  &gt;&gt;&gt; req = urllib.request.Request(url='https://localhost/cgi-bin/test.cgi',
  ... data=b'This data is passed to stdin of the CGI')
  &gt;&gt;&gt; f = urllib.request.urlopen(req)
  &gt;&gt;&gt; print(f.read().decode('utf-8'))
  Got Data: "This data is passed to stdin of the CGI"
  </code></pre>
  
  <p>use the server</p>
  
  <pre><code>python3 -m http.server
  </code></pre>
  
  <p>get message as the following when urlopen(req):</p>
  
  <pre><code>......
  ssl.SSLError: [Errno 1] _ssl.c:390: error:140770FC:SSLroutines:SSL23_GET_SERVER_HELLO:unknown protocol
  
  During handling of the above exception, another exception occurred:
  ......
  urllib.error.URLError: &lt;urlopen error [Errno 1] _ssl.c:390: error:140770FC:SSL     routines:SSL23_GET_SERVER_HELLO:unknown protocol&gt;
  </code></pre>
  
  <p>Any suggestion?Thanks a lot.</p>