Post

2021-02-01-TIL

2021-02-01-TIL

www.disney.com -> get ip address:10.5.3.7 -> http request -> http response

https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers

https://joone.net/2021/01/02/37-%EC%9B%94%EB%93%9C%EC%99%80%EC%9D%B4%EB%93%9C%EC%9B%B9www%EC%9D%98-%EC%8B%9C%EC%9E%91-1/

Permission error

https://hello-gg.tistory.com/28

HTTP Request method

https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods

오늘의 책 추천

  • 유닉스의 탄생

Project Structure

1
2
3
4
5
6
7
8
9
10
11
12
└── HttpProcessor
    ├── HttpProcessor.iml
    ├── domains.txt
    ├── out
    │   └── production
    │       └── HttpProcessor
    │           ├── HttpRequestTest.class
    │           └── HttpRequester.class
    ├── requestHeader.txt
    └── src
        ├── HttpRequestTest.java
        └── HttpRequester.java

Mission1 - HTTP Request

image-20210201151651630

image-20210201151558710

image-20210201151603510

Mission2 - HTTP Response

image-20210201164855204

image-20210201164901997

Done

  • Mission1 구현 및 테스트
  • Mission2 HTTP Response 출력까지

ToDo

  • body의 data를 Content-Length만큼 잘라서 담아야한다. (현재는 header와 body의 구분없이 받아서 출력한다.)

  • 구매하고 한번도 본적 없던 김영한님의 강의를 한번 보고 정리해봐야겠다.

How to send a raw HTTP request vis Java

https://code.joejag.com/2012/how-to-send-a-raw-http-request-via-java.html

https://www.baeldung.com/java-http-request

https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers

This post is licensed under CC BY 4.0 by the author.