<!--
Generated by the Web2MD product-team benchmark.
Source: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Methods/GET
Retrieved: 2026-11-05T01:28:38.180Z
Source content license: CC BY-SA 2.5
Method: fetch the public HTML once, then run @web2md/shared quickConvert locally.
-->
---
title: "GET request method - HTTP | MDN"
published: 2025-07-04
description: "The GET HTTP method requests a representation of the specified resource.
Requests using GET should only be used to request data and shouldn't contain a body."
source: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Methods/GET
date: 2026-11-05T01:28:39.156Z
---

Baseline

Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.

- [See full compatibility](#browser_compatibility)
- [Learn more](/en-US/docs/Glossary/Baseline/Compatibility)

The **`GET`** HTTP method requests a representation of the specified resource. Requests using `GET` should only be used to request data and shouldn't contain a body.

**Note:** The semantics of sending a message body in `GET` requests are undefined. Some servers may reject the request with a [4XX client error](/en-US/docs/Web/HTTP/Reference/Status#client_error_responses) response.

| Request has body | No |
| --- | --- |
| Successful response has body | Yes |
| Safe | Yes |
| Idempotent | Yes |
| Cacheable | Yes |
| Allowed in HTML forms | Yes |

http

```html
GET <request-target>["?"<query>] HTTP/1.1

```

[`<request-target>`](#request-target)

Identifies the target resource of the request when combined with the information provided in the [`Host`](/en-US/docs/Web/HTTP/Reference/Headers/Host) header. This is an absolute path (e.g., `/path/to/file.html`) in requests to an origin server, and an absolute URL in requests to proxies (e.g., `http://www.example.com/path/to/file.html`).

[`<query>` Optional](#query)

An optional query component preceded by a question-mark `?`. Often used to carry identifying information in the form of `key=value` pairs.

The following `GET` request asks for the resource at `example.com/contact`:

http

```yaml
GET /contact HTTP/1.1
Host: example.com
User-Agent: curl/8.6.0
Accept: */*

```

The server sends back the resource with a [`200 OK`](/en-US/docs/Web/HTTP/Reference/Status/200) status code, indicating success:

http

```yaml
HTTP/1.1 200 OK
Content-Type: text/html; charset=UTF-8
Date: Fri, 21 Jun 2024 14:18:33 GMT
Last-Modified: Thu, 17 Oct 2019 07:18:26 GMT
Content-Length: 1234

<!doctype html>
<!-- HTML content follows -->

```

| Specification |
| --- |
| HTTP Semantics# GET |

- [HTTP request methods](/en-US/docs/Web/HTTP/Reference/Methods)
- [HTTP response status codes](/en-US/docs/Web/HTTP/Reference/Status)
- [HTTP headers](/en-US/docs/Web/HTTP/Reference/Headers)
- [`Range`](/en-US/docs/Web/HTTP/Reference/Headers/Range) header
- [`POST`](/en-US/docs/Web/HTTP/Reference/Methods/POST) method

## Help improve MDN

[Learn how to contribute](/en-US/docs/MDN/Community/Getting_started)

This page was last modified on by [MDN contributors](/en-US/docs/Web/HTTP/Reference/Methods/GET/contributors.txt).
