summaryrefslogtreecommitdiffstatshomepage
path: root/examples/network/http_client_ssl.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/network/http_client_ssl.py')
-rw-r--r--examples/network/http_client_ssl.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/network/http_client_ssl.py b/examples/network/http_client_ssl.py
index 46e039830f..83f685fdf3 100644
--- a/examples/network/http_client_ssl.py
+++ b/examples/network/http_client_ssl.py
@@ -24,12 +24,12 @@ def main(use_stream=True):
if use_stream:
# Both CPython and MicroPython SSLSocket objects support read() and
# write() methods.
- s.write(b"GET / HTTP/1.0\n\n")
+ s.write(b"GET / HTTP/1.0\r\n\r\n")
print(s.read(4096))
else:
# MicroPython SSLSocket objects implement only stream interface, not
# socket interface
- s.send(b"GET / HTTP/1.0\n\n")
+ s.send(b"GET / HTTP/1.0\r\n\r\n")
print(s.recv(4096))
s.close()