> For the complete documentation index, see [llms.txt](https://doc.ankabot.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.ankabot.dev/ankabot-pc/mode-developpeur/developer/postrequestthroughhttpsproxy.md).

# postRequestThroughHTTPSProxy

Méthode retournant le résultat d'une requête POST à travers un proxy HTTPS et d'en récupérer le résultat.

### 🎮 Méthode

```coffeescript
developer:postRequestThroughHTTPSProxy(url, data, host, port, username, password, headersName, headersContent)
```

### 📝 Arguments

| Nom            | Type     | Description                                                                     |             |
| -------------- | -------- | ------------------------------------------------------------------------------- | ----------- |
| url            | string   | URL                                                                             | Obligatoire |
| data           | string   | <p>Données à envoyer, exemple :</p><p>key1=value1\&key2=value2\&key3=value3</p> | Obligatoire |
| host           | string   | Adresse IP du proxy.                                                            | Obligatoire |
| port           | int      | Port.                                                                           | Obligatoire |
| username       | string   | Utilisateur.                                                                    | Obligatoire |
| password       | string   | Mot de passe.                                                                   | Obligatoire |
| headersName    | {string} | Liste des headers à envoyer.                                                    | Facultatif  |
| headersContent | {string} | Liste des contenus des headers à envoyer.                                       | Facultatif  |

### 💎 Valeur de retour

| Type   | Description             |
| ------ | ----------------------- |
| string | Résultat de la requête. |

### Exemple

```lua
developer:postRequestThroughHTTPSProxy("https://httpbin.org/ip", "param1=value1&param2=value2&param3=value3", "185.211.211.211", 2000, "user", "pass", {"User-agent"}, {"AnkaBot"})

-- Sans les headers
developer:postRequestThroughHTTPSProxy("https://httpbin.org/ip", "param1=value1&param2=value2&param3=value3", "185.211.211.211", 2000, "user", "pass")
```
