> ## Documentation Index
> Fetch the complete documentation index at: https://help.decodo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# POST 请求

> Site Unblocker POST 请求

除了支持 GET 请求外，Site Unblocker 还允许您向您选择的 Web 端点发送 POST 请求。此功能允许您向特定网站发送数据，从而获得目标的修改响应。

<Note>
  当使用 POST 请求发送正文时，应提供正确的 `Content-Type` 标头。
</Note>

<CodeGroup>
  ```shellscript cURL theme={null}
  curl -X POST -k -v -x unblock.decodo.com:60000 'http://httpbin.org/post' \
       -U 'USERNAME:PASSWORD' \
       -H 'Content-Type: application/json'
       -d '{"foo": "bar"}'
  ```

  ```python Python theme={null}
  import requests

  proxies = {
      'http': 'http://USERNAME:PASSWORD@unblock.decodo.com:60000',
      'https': 'http://USERNAME:PASSWORD@unblock.decodo.com:60000'
  }

  data = {
      "Your POST data": "data"
  }

  response = requests.request(
      'POST',
      'http://httpbin.org/post',
      verify=False,
      proxies=proxies,
      data=data
  )

  print(response.text)
  ```

  ```javascript Node.js theme={null}
  import fetch from 'node-fetch';
  import createHttpsProxyAgent from 'https-proxy-agent'

  const username = 'YOUR_USERNAME';
  const password = 'YOUR_PASSWORD';

  const agent = createHttpsProxyAgent(
    `http://${username}:${password}@unblock.decodo.com:60000`
  );

  process.env['NODE_TLS_REJECT_UNAUTHORIZED'] = 0;

  const headers = {
    'Content-Type': 'application/json'
  }

  const body = {
    'Your POST data': 'data'
  };

  const response = await fetch('http://httpbin.org/post', {
    method: 'get',
    body: JSON.stringify(body),
    headers: headers,
    agent: agent
  });

  console.log(await response.text());
  ```
</CodeGroup>

***

<Columns cols={2}>
  <Card title="支持" href="https://direct.lc.chat/12092754" cta="让我们聊聊！">
    需要帮助或只是想打个招呼？我们的支持团队全天候为您服务。 \
    您也可以随时通过电子邮件 [support@decodo.com](mailto:support@decodo.com) 联系我们。
  </Card>

  <Card title="反馈" href="mailto:feedback@decodo.com" cta="分享反馈">
    找不到您要找的内容？请求一篇文章！ \
    有反馈意见？分享您对我们如何改进的想法。
  </Card>
</Columns>
