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 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 sind Notizen, um von der OxoCard die Highscores auf dem Web zu publizieren.+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("SSID", "PASSWORD") +Wlan.connect("stopbuepf", "stopbuepf") 
-client = HTTPClient()+client = HTTPClient()  # Pass True for debugging...
 client._isSSL=True client._isSSL=True
 if client.connect("tech-lab.ch", 443):  # Host is used in HTTP-Query if client.connect("tech-lab.ch", 443):  # Host is used in HTTP-Query
-    response = client.sendPutRequest("/score/index.php", "name="+HTTPClient.toUrl("Hase")+"&score=123")+    response = client.sendPostRequest("/scores/index.php", "name="+HTTPClient.toUrl("Hase")+"&score=123")
     print(response)     print(response)
     client.closeConnection()     client.closeConnection()
  
 +</code>
  • lehrkraefte/blc/informatik/glf20/oxotetris.1608207996.txt.gz
  • Last modified: 2020/12/17 13:26
  • by Ivo Blöchliger