kopia lustrzana https://github.com/micropython/micropython-lib
http.client: Add basic example.
rodzic
bd3ceb4513
commit
c07404dab3
|
@ -2,7 +2,7 @@ from http.client import HTTPConnection
|
|||
|
||||
|
||||
conn = HTTPConnection("localhost")
|
||||
#conn = HTTPConnection("micropython.org")
|
||||
#conn = HTTPConnection("python.org")
|
||||
conn.request("GET", "/")
|
||||
resp = conn.getresponse()
|
||||
print(resp)
|
||||
|
|
Ładowanie…
Reference in New Issue