> For the complete documentation index, see [llms.txt](https://krjaeh0.gitbook.io/j-log/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://krjaeh0.gitbook.io/j-log/programming/cs_basics/web_technologies/http-and-urls/url.md).

# URL

## URL

* Uniform Resource Locator의 약자
* 웹에 있는 리소스의 위치를 표현하는 문자열
* 브라우저로 특정 웹 리소스에 접근할 때는, URL을 사용하여 서버에 요청한다.
* URL은 Scheme, Authority(Userinfo, Host, Port), Path, Query, Fragment 등으로 구성된다.

| **요소**       | **설명**                                                              |
| ------------ | ------------------------------------------------------------------- |
| **Scheme**   | 웹 서버와 어떤 프로토콜로 통신할지 나타냅니다.                                          |
| **Host**     | Authority의 일부로, 접속할 웹 서버의 주소에 대한 정보를 가지고 있습니다.                      |
| **Port**     | Authority의 일부로, 접속할 웹 서버의 포트에 대한 정보를 가지고 있습니다.                      |
| **Path**     | 접근할 웹 서버의 리소스 경로로 '/'로 구분됩니다.                                       |
| **Query**    | 웹 서버에 전달하는 파라미터이며 URL에서 '?' 뒤에 위치합니다.                               |
| **Fragment** | 메인 리소스에 존재하는 서브 리소스를 접근할 때 이를 식별하기 위한 정보를 담고 있습니다. '#' 문자 뒤에 위치합니다. |

## [URL 인코딩](broken://pages/3cbf5cdd65ae730615c260b1978b307ba2abd58f)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://krjaeh0.gitbook.io/j-log/programming/cs_basics/web_technologies/http-and-urls/url.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
