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 [Highscores auf dem Web]
lehrkraefte:blc:informatik:glf20:oxotetris [2020/12/17 14:02]
Ivo Blöchliger [Highscores auf dem Web]
Line 210: Line 210:
 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.txt
  • Last modified: 2020/12/17 14:02
  • by Ivo Blöchliger