发布请求

除了促进 GET 请求之外,Site Unblocker 还使你能够利用 POST 请求发送到你偏好的 Web 端点。此功能允许你将数据发送到特定网站,从而导致目标做出修改后的响应。

curl -k -v -x unblock.smartdaili-china.com:60000 \
-X POST \
-U "USERNAME:PASSWORD" "http://httpbin.org/post" \
-d "Your content here"
import requests

proxies = {
    'http': 'http://USERNAME:[email protected]:60000',
    'https': 'http://USERNAME:[email protected]:60000'
}

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

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

print(response.text)

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.smartdaili-china.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());