kopia lustrzana https://github.com/micropython/micropython-lib
http.client: Add example.
rodzic
878edba0dc
commit
500a82267d
|
@ -0,0 +1,9 @@
|
|||
from http.client import HTTPConnection
|
||||
|
||||
|
||||
conn = HTTPConnection("localhost")
|
||||
#conn = HTTPConnection("micropython.org")
|
||||
conn.request("GET", "/")
|
||||
resp = conn.getresponse()
|
||||
print(resp)
|
||||
print(resp.read())
|
Ładowanie…
Reference in New Issue