Allow non-browser requests to upload Networks and create tests
This commit is contained in:
1 parent
5fde447ff0
commit
c31a9a0b2d
4 files changed
+83
No files matched your search
@@ -0,0 +1,17 @@
|
||||
import requests
|
||||
|
||||
URL = 'http://chess.grantnet.us/scripts/'
|
||||
FILENAME = ''
|
||||
|
||||
data = {
|
||||
'engine' : '',
|
||||
'name' : ''.
|
||||
'username' : '',
|
||||
'password' : '',
|
||||
'action' : 'UPLOAD',
|
||||
}
|
||||
|
||||
with open(FILENAME, 'rb') as file:
|
||||
r = requests.post(URL, data=data, files={'netfile' : file})
|
||||
|
||||
print(r.text)
|
||||
Reference in new issue
Block a user