일반적으로 사용하는 통신방법인 HTTP와 그 request 조금이라도 파해쳐보자

0. 참고 : 네트워크 계층 구조

1. HTTP request 구조

POST /payment-sync HTTP/1.1 # start line

# header
Accept: application/json
Accept-Encoding: gzip, deflate
Connection: keep-alive
content-Length: 83
Content-Type: application/json
Host: json-test.com
User-Agent: HTTPie/0.9.3

# body
{
  "access_token": "blah blah blah",
  "token_type": "Bearer",
  "expires_in": 720
}

1.1 start line : POST /payment-sync HTTP/1.1

1.2 header

1.2.1 Host

1.2.2 User-Agent