# 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`.
