2016-08-27から1日間の記事一覧
PythonによるCGIが動くようになったので クライアントとサーバー(CGI)でJSONでやり取りしてみる。 クライアント側のプログラム import requests r = requests.post('http://localhost:8080/cgi-bin/json_service.py', json={"key": "value"}) print(r.status…
PythonによるCGIが動くようになったので クライアントとサーバー(CGI)でJSONでやり取りしてみる。 クライアント側のプログラム import requests r = requests.post('http://localhost:8080/cgi-bin/json_service.py', json={"key": "value"}) print(r.status…