在使用代理服务时,Smartdaili通过单个反向连接端点提供代理访问,具体地址为住宅 - gateway.visitxiangtan.com:7000。在这种情况下,用户需要将所有参数与代理用户名一起传递。
可用参数及其描述和用途如下:
①Country:国家代码,以两个符号的ISO格式提供。可查看相关资料获取大多数ISO国家代码。例如,“country - cn”表示中国。
②city:城市名称。将此参数添加到用户名中可指定使用的IP所在的城市,需与国家/地区参数一起使用。例如,“country - us - city - New York”表示美国的纽约市。
③postalcode:5位邮政编码。此参数仅适用于定位美国,应与美国国家“country - us”参数一起使用,可指定要定位的邮政编码位置。例如,“country - us - postalcode - 10001”表示美国邮政编码为10001的地区。
④state:美国的州。仅在选择美国作为国家/地区参数时使用,用于指定想要使用的IP的美国州,格式为“us_state_name”(例如“us_california”)。
⑤session:用于创建会话的随机字符串,可使多个请求保留相同的IP。会话在10分钟(或60秒不活动)后自动过期,之后将为该会话的ID分配一个新的IP。例如,“session - randomstring123”。
⑥sessionduration:与会话一起使用,用于指定粘滞会话时间(以分钟为单位),可设置为1到30之间的任意数字。若未指定此参数,会话默认持续10分钟。例如,“sessionduration - 30”表示粘滞会话时间为30分钟。
一、使用反向连接入口节点
在应用程序中使用反向连接入口节点时,需要将会话的每个参数与用户名字段中的用户名一起传递,具体格式如下:

在密码字段中,只需输入代理用户的密码。
请注意,仅在需要粘性会话时才使用会话ID,否则可忽略该部分以接收轮换代理。
二、使用 cURL 请求的示例
以下是使用cURL请求的示例:
1、旋转随机代理示例:
curl -U <username>:<password> -x gate.visitxiangtan.com:7000 https://ip.visitxiangtan.com/json
2、来自特定国家和随机城市的轮换代理
意大利随机的代理示例:
curl -U user - <username> - country - it:<password> -x gate.visitxiangtan.com:7000 https://ip.visitxiangtan.com/json
3、具有粘性代理的特定国家(使用会话ID):
粘性30分钟意大利代理示例:
curl -U user - <username> - country - it - sessionduration - 30:<password> -x gate.visitxiangtan.com:7000 https://ip.visitxiangtan.com/json
4、具有粘性代理的特定国家和城市(使用会话ID):
使用会话ID的粘性美国 - 纽约市代理示例:
// randomstring123 - 由您选择的字符串定义的会话ID
curl -U user - <username> - country - us - city - new_york - session - randomstring123:<password> -x gate.visitxiangtan.com:7000 https://ip.visitxiangtan.com/json
5、具有粘性端口的特定国家和州(使用会话ID):
以加利福尼亚州和纽约州为目标的美国州示例(州):
// 当州名称由两个单词组成时,请使用下划线。例如:“us_new_york”“us_rhode_island”
curl -U user - <username> - country - us - state - us_california:<password> -x gate.visitxiangtan.com:7000 https://ip.visitxiangtan.com/json
curl -U user - <username> - country - us - state - us_new_york:<password> -x gate.visitxiangtan.com:7000 https://ip.visitxiangtan.com/json
6、具有30分钟粘性端口的特定国家、州和城市(使用会话ID):
粘性30分钟美国国家、德克萨斯州、奥斯汀市代理的示例:
// randomstring123 - 由您选择的字符串定义的会话ID
curl -U user - <username> - country - us - state - us_texas - city - austin - session - randomstring123 - sessionduration - 30:<password> -x gate.visitxiangtan.com:7000 https://ip.visitxiangtan.com/json
7、具有30分钟粘性端口的特定邮政编码(使用会话ID):
粘性30分钟美国国家、德克萨斯州、奥斯汀市代理的示例:
// randomstring123 - 由您选择的字符串定义的会话ID
curl -U user - <username> - country - us - postalcode - 10001 - session - randomstring123 - sessionduration - 30:<password> -x gate.visitxiangtan.com:7000 https://ip.visitxiangtan.com/json
通过以上介绍,相信您对单个反向连接入口节点的使用有了更清晰的了解。单个反向连接入口节点为我们提供了一种灵活且便捷的代理访问方式。通过合理设置参数和使用 cURL 请求,我们可以根据自己的需求获取特定国家、城市或地区的代理服务。在使用过程中,请确保遵守相关法律法规和服务条款,以充分发挥其优势并保障网络安全。希望本文对您有所帮助,祝您在网络世界中畅游无阻!