lehrkraefte:blc:informatik:glf20:oxotetris

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
lehrkraefte:blc:informatik:glf20:oxotetris [2020/12/17 08:03]
Ivo Blöchliger
lehrkraefte:blc:informatik:glf20:oxotetris [2020/12/17 14:02] (current)
Ivo Blöchliger [Highscores auf dem Web]
Line 204: Line 204:
 </code> </code>
  
 +
 +===== Highscores auf dem Web =====
 +Was folgt sind Notizen, um von der OxoCard die Highscores auf dem Web zu publizieren.
 +<code python>
 +from tcpcom import *
 +# See dcoumentation directly in the code of the OxoCard modules files
 +Wlan.connect("stopbuepf", "stopbuepf")
 +client = HTTPClient()  # Pass True for debugging...
 +client._isSSL=True
 +if client.connect("tech-lab.ch", 443):  # Host is used in HTTP-Query
 +    response = client.sendPostRequest("/scores/index.php", "name="+HTTPClient.toUrl("Hase")+"&score=123")
 +    print(response)
 +    client.closeConnection()
 +
 +</code>
  • lehrkraefte/blc/informatik/glf20/oxotetris.1608188588.txt.gz
  • Last modified: 2020/12/17 08:03
  • by Ivo Blöchliger