# URL

**URL**

What a user types to reach a resource

![](/files/Y9ORuqoS03o7zqp1iZiA)

Understanding each component:

**Scheme**: | <http://https://> | identifies the protocol being accessed by the client.

**User Info**: | admin:password@ | Optional, used to authenticate to a host.

**Host**: | inlanefreight.com | Resource location, can be either a hostname or an IP address.

**Port**: | :80 | When no port is specified, http will go to 80, https will go to 443.

**Path**: | /dashboard.php |  The resource being accessed.  Can be a file or folder.  Will go to default index. ex: index.html

**Query String**: | ?login=true | Consists of paramater (login) and value (true).  Multiple parameters can be used if seperated by &.

**Fragments**: | #status | Processed by the browser on the client-side to locate sections within the primary resource. (ex: header or section on the page).

All components are not necessary to reach a resource.  Mandatory fields include the **scheme and host**.


---

# Agent Instructions: 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:

```
GET https://scarecrow.gitbook.io/cyber-security/chapter-2-bug-bounty-basics/web-requests/http-fundamentals/url.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
