urllib.urequest: Support arbitrary HTTP methods on urlopen() level.

This is extension to CPython (CPython does this via Request class).
pull/73/head
Paul Sokolovsky 2016-03-14 09:49:16 +07:00
rodzic 44c5ed37f7
commit ee49bab877
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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: