🌐 HTTP代理服务器

yl.fopath.com - Hostinger共享虚拟主机代理服务

📋 服务状态

代理服务状态: 检查中...

🚀 使用方法

方法1: GET请求(简单)

GET https://yl.fopath.com/proxy.php?url=https://example.com

方法2: POST请求(完整功能)

POST https://yl.fopath.com/proxy.php

Headers: Content-Type: application/json

Body:
{
  "url": "https://api.example.com/data",
  "method": "GET",
  "headers": {
    "Authorization": "Bearer token"
  },
  "timeout": 30
}

方法3: 简化版代理(直接转发)

GET https://yl.fopath.com/proxy_simple.php?url=https://example.com

💻 代码示例

JavaScript (Fetch API)

fetch('https://yl.fopath.com/proxy.php', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    url: 'https://api.example.com/data',
    method: 'GET',
    headers: {
      'Authorization': 'Bearer your-token'
    }
  })
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));

Python

import requests

response = requests.post('https://yl.fopath.com/proxy.php', json={
    'url': 'https://api.example.com/data',
    'method': 'GET',
    'headers': {
        'Authorization': 'Bearer your-token'
    }
})

data = response.json()
print(data)

cURL

curl -X POST https://yl.fopath.com/proxy.php \\
  -H "Content-Type: application/json" \\
  -d '{
    "url": "https://api.example.com/data",
    "method": "GET"
  }'

🧪 在线测试

⚠️ 注意事项