> For the complete documentation index, see [llms.txt](https://web.mrw0l05zyn.cl/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://web.mrw0l05zyn.cl/escaneo-y-enumeracion/http-methods-verbs.md).

# HTTP methods (verbs)

## cURL <a href="#http-methods-verbs-curl" id="http-methods-verbs-curl"></a>

```shell
curl -X OPTIONS http://<target>/ -v
```

## Netcat

```shell
nc <target> <port>
OPTIONS / HTTP/1.0
```

```shell
nc <target> <port>
OPTIONS / HTTP/1.1
Host: <target>
```

{% hint style="info" %}
Utilizar **`HTTP 1.1`** implica enviar un **`Host:`** en la solicitud. Si  utiliza **`HTTP 1.0`** se puede omitir.
{% endhint %}

## Nmap <a href="#http-methods-verbs-nmap" id="http-methods-verbs-nmap"></a>

```shell
nmap -p 80,443 --script http-methods <target> -oN nmap-http-methods.txt
```

* -p = puertos.
* \--script http-methods = HTTP verbs.
* \<target> = objetivo.
* -oN = guarda resultado en archivo `nmap-http-methods.txt`.
