Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
lehrkraefte:blc:informatik:glf20:oxotetris [2020/12/17 13:26] Ivo Blöchliger |
lehrkraefte:blc:informatik:glf20:oxotetris [2020/12/17 14:02] (current) Ivo Blöchliger [Highscores auf dem Web] |
||
---|---|---|---|
Line 206: | Line 206: | ||
===== Highscores auf dem Web ===== | ===== Highscores auf dem Web ===== | ||
- | Das folgende | + | Was folgt sind Notizen, um von der OxoCard die Highscores auf dem Web zu publizieren. |
<code python> | <code python> | ||
from tcpcom import * | from tcpcom import * | ||
# See dcoumentation directly in the code of the OxoCard modules files | # See dcoumentation directly in the code of the OxoCard modules files | ||
- | Wlan.connect(" | + | Wlan.connect(" |
- | client = HTTPClient() | + | client = HTTPClient() |
client._isSSL=True | client._isSSL=True | ||
if client.connect(" | if client.connect(" | ||
- | response = client.sendPutRequest("/score/ | + | response = client.sendPostRequest("/scores/ |
print(response) | print(response) | ||
client.closeConnection() | client.closeConnection() | ||
+ | </ |