WebService
-
Token(토큰)WebService 2022. 8. 17. 16:26
JWT JSON 웹 토큰(JSON Web Token, JWT, "jot”) JWT는 웹 표준으로서, 대표적인 토큰 기반 인증 시스템이다. 토큰의 저장위치 인증 정보는 표준적으로 HTTP의 Authorization header에 담는다. 'Header' 내에 'Authorization'에 Key과 Value 값으로서 인증 스키마를 담는다. 인증 스키마는 type와 credential로 구성된다. type에는 인증방식으로 Bearer이 대표적이다. Ex: Header { Authorization: Bearer 2B-Xxxxxxxxx } 암호화 참고자료 https://ko.wikipedia.org/wiki/JSON_%EC%9B%B9_%ED%86%A0%ED%81%B0
-
HTTP Request Response structureWebService 2022. 8. 10. 12:06
Http 구조, 요청과 응답 구조 D28xx 정리중 https://infos.tistory.com/4659 Http는 Client로 부터 Request가 있으면 Server로 부터 Response가 되는 요청과 응답의 관계로 동작한다. Http에서 CSS, Images, JavaScript 등이 필요하면 각각 개별로 Request와 Response의 짝을 이루는 절차를 거친다. 2022.09.23 - Http Keep Alive HttpRequestEx 일반적으로 GET으로 request를 보내면 아래 형태의 내용들이 서버로 넘어간다 RequestLine GET /testpage/testoption/ HTTP/1.1 Headers Host: testx1234.testserver.com User-Agent..
-
multipart form-data 와 boundaryWebService 2022. 8. 8. 21:26
multipart/form-data 개요 http의 data에 전송 규격은 단일 방식이 아니다. 각 방식을 정의 하는 방법으로 'content-type'를 사용한다. file전송은 용량이 큰 경우도 가능해야 한다. 그래서 한번에 모두 보낼 수 없기에 나눠 보내야한다. 그래서 'content-type'에 'multipart/form-data' 전송 방식이 사용된다. 전송이 한번에 처리되지 않기에 조각 조각에 대한 parsing이 처리가 필요하다. 그런 처리는 보통 미리 정의해둔 함수 주소를 받아 data조각이 올 때마다 호출하여 알아서 처리하도록 한다. 그래서 bodyparse개념이 등장했다. Content-Type 2020.07.13 - HTTP Content-type header values Conte..
-
-
HttpHeader Cookie(쿠키)WebService 2021. 10. 26. 18:13
Http Header에 들어가는 값인 Cookie 쿠키(Cookie) 쇼핑몰의 장바구니 서비스 같이 클라이언트가 정보를 유지하는 Stateful한 성격의 서비스에 유용한 기능. 기본적인 HTTP의 단점은 정보를 유지할 수 없는 Connectionless, Stateless의 성격을 가졌다. 이를 해결하기 위해 Cookie라는 개념이 도입되었다. 웹 서버가 접속한 클라이언트 브라우저에게 지시하여 사용자의 로컬 컴퓨터에 파일 또는 메모리에 저장하는 작은 기록 정보 파일이다. Cookie와 Session(HTTP Session) 둘다 HTTP를 Stateful을 가능하게 만든 방법이다. 큰 차이는 상태정보를 어디에 저장하는 위치다. Cookie는 브라우저에 의해 클라이언트 측에 저장되고 Session은 서버 ..
-
Asp(Active Server Pages)WebService 2021. 6. 26. 11:16
Asp(Active Server Pages) 마이크로소프트가 IIS에서 동적 웹 페이지 생성 목적으로 제작한 서버 사이드 스크립트 엔진이다. 1996년 출시된 IIS 3.0부터 기본으로 포함되기 시작되었으며, 최종버전은 2000년 출시된 IIS 5.0에 포함된 3.0이다. ASP는 2020년까지 지원이 예정되어 있고, 현재는 신규 프로젝트에는 거의 쓰이지 않고 있다. (이후 보통 ASP.NET, Jsp, Php, Django, Flask등을 사용하는 추세) ASP의 특징은 여러 가지 언어를 지원한다. .NET 언어 어떤 것이든지 ASP.NET으로 개발이 가능하다. Client는 Javascript대신 블레이저를 사용하면 C#으로 모두(풀스택)개발 가능하다. 2021.06.26 - Blazor 블레이저