C:\ljw-study\spring-api\workspace\SpringApi>pip install --upgrade httpie
Collecting httpie
Downloading httpie-2.2.0-py3-none-any.whl (70 kB)
|████████████████████████████████| 70 kB 168 kB/s
Collecting Pygments>=2.5.2
Downloading Pygments-2.6.1-py3-none-any.whl (914 kB)
|████████████████████████████████| 914 kB 273 kB/s
Requirement already satisfied, skipping upgrade: colorama>=0.2.4; sys_platform == "win32" in c:\app\programingtools\anaconda3\lib\site-packages (from httpie) (0.
4.1)
Collecting requests>=2.22.0
Downloading requests-2.24.0-py2.py3-none-any.whl (61 kB)
|████████████████████████████████| 61 kB 166 kB/s
Requirement already satisfied, skipping upgrade: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in c:\app\programingtools\anaconda3\lib\site-packages (from requests>=2.
22.0->httpie) (1.22)
Requirement already satisfied, skipping upgrade: certifi>=2017.4.17 in c:\app\programingtools\anaconda3\lib\site-packages (from requests>=2.22.0->httpie) (2018.1
1.29)
Requirement already satisfied, skipping upgrade: idna<3,>=2.5 in c:\app\programingtools\anaconda3\lib\site-packages (from requests>=2.22.0->httpie) (2.8)
Requirement already satisfied, skipping upgrade: chardet<4,>=3.0.2 in c:\app\programingtools\anaconda3\lib\site-packages (from requests>=2.22.0->httpie) (3.0.4)
ERROR: spyder 3.3.2 requires pyqt5<5.10; python_version >= "3", which is not installed.
Installing collected packages: Pygments, requests, httpie
Attempting uninstall: Pygments
Found existing installation: Pygments 2.3.1
Uninstalling Pygments-2.3.1:
Successfully uninstalled Pygments-2.3.1
Attempting uninstall: requests
Found existing installation: requests 2.21.0
Uninstalling requests-2.21.0:
Successfully uninstalled requests-2.21.0
Successfully installed Pygments-2.6.1 httpie-2.2.0 requests-2.24.0
C:\ljw-study\spring-api\workspace\SpringApi>http GET localhost:8080
http: error: ConnectionError: HTTPConnectionPool(host='localhost', port=8080): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connectio
n.HTTPConnection object at 0x0000019A7C515F28>: Failed to establish a new connection: [WinError 10061] 대상 컴퓨터에서 연결을 거부했으므로 연결하지 못했습니다'))
while doing a GET request to URL: http://localhost:8080/
C:\ljw-study\spring-api\workspace\SpringApi>http GET localhost:8080
HTTP/1.1 200
Connection: keep-alive
Content-Length: 15
Content-Type: text/plain;charset=UTF-8
Date: Sun, 26 Jul 2020 09:44:54 GMT
Keep-Alive: timeout=60
Hello, World!!!
C:\ljw-study\spring-api\workspace\SpringApi>http GET localhost:8080/restaurants
HTTP/1.1 200
Connection: keep-alive
Content-Type: application/json
Date: Sun, 26 Jul 2020 09:47:10 GMT
Keep-Alive: timeout=60
Transfer-Encoding: chunked
[
{
"address": "Seoul",
"id": 1004,
"infomation": "Bob zip in Seoul",
"menuItems": [],
"name": "Bob zip"
},
{
"address": "Seoul",
"id": 2020,
"infomation": "Cyber Food in Seoul",
"menuItems": [],
"name": "Cyber Food"
}
]
C:\ljw-study\spring-api\workspace\SpringApi>http GET localhost:8080/restaurants/1004
HTTP/1.1 200
Connection: keep-alive
Content-Type: application/json
Date: Sun, 26 Jul 2020 09:47:45 GMT
Keep-Alive: timeout=60
Transfer-Encoding: chunked
{
"address": "Seoul",
"id": 1004,
"infomation": "Bob zip in Seoul",
"menuItems": [
{
"name": "Kimchi"
}
],
"name": "Bob zip"
}
C:\ljw-study\spring-api\workspace\SpringApi>http POST localhost:8080/restaurants name=BeRyong address=Busan
HTTP/1.1 201
Connection: keep-alive
Content-Length: 2
Content-Type: application/json
Date: Sun, 26 Jul 2020 10:11:24 GMT
Keep-Alive: timeout=60
Location: /restaurants/1234
{}
'IntelliJ' 카테고리의 다른 글
[Mac] IntelliJ 단축키 (0) | 2021.01.05 |
---|---|
Task 'classes' not found in root project (0) | 2020.07.19 |
IntelliJ xml추가 (0) | 2020.05.26 |