kopia lustrzana https://github.com/micropython/micropython-lib
urllib.urequest: Support arbitrary HTTP methods on urlopen() level.
This is extension to CPython (CPython does this via Request class).pull/73/head
rodzic
44c5ed37f7
commit
ee49bab877
|
@ -1,6 +1,6 @@
|
|||
import usocket
|
||||
|
||||
def urlopen(url, data=None):
|
||||
def urlopen(url, data=None, method="GET"):
|
||||
if data is not None and method=="GET":
|
||||
method = "POST"
|
||||
try:
|
||||
|
|
Ładowanie…
Reference in New Issue