回答編集履歴
1
update
test
CHANGED
@@ -1,9 +1,15 @@
|
|
1
|
-
|
1
|
+
URIに直接パラメータ入れてリクエスト出来ます。
|
2
2
|
|
3
3
|
|
4
4
|
|
5
5
|
```Python
|
6
6
|
|
7
|
+
c = HTTPConnection('localhost:8082')
|
8
|
+
|
7
|
-
c
|
9
|
+
c.request('GET', '/get?id=100')
|
10
|
+
|
11
|
+
response = c.get_response()
|
12
|
+
|
13
|
+
print(response.reason, response.status, response.read())
|
8
14
|
|
9
15
|
```
|