请求地址

http://xxxxxxx:5101/async_tls

POST application/json

请求参数

属性

类型

必须

说明

method

string

访问目标站点的请求方式,默认get

types

string

类型(curl, cffi, httpx, cy)

url

string

目标站点的url

params

json

url里的参数

headers

json

请求目标站点的headers

proxy

string

请求网站的代理

cookies

json

请求目标站点的cookies

json

json

post方式,application/json类型的参数

data

json

post方式,application/x-www-form-urlencoded类型的参数

timeou

int

超时时间,默认30s

redirect

bool

是否重定向,默认否

impersonate

string

只对cffi类型起作用,可选"chrome99", "chrome100", "chrome101", "chrome104", "chrome107", "chrome110", "chrome116", "chrome119", "chrome120", "chrome123", "chrome124"

random_tls_extension_order

bool

只对curl类型可用,一般不用传入

请求示例

{
    "method": "post",
	"types": "curl",
    "url": "https://wizzair.com/IMbBdd/Tii8_a/xwxx/bK-CmT/pr/aJSYQfptGQD9r7/fgMKIwUl/LQl/KW2IFQ3I",
    "headers": {
        "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36"
    },
    "json": {
        "sensor_data": "2;3355973;3617094;9,0,0,10,12,62;g6ga-Zqdb9v*A,"
    },
    "cookies": {
        "_abck": "759D35B49C8AA009B132A7E702BA1E83~-1~YAAQOf8xF/oy2u2OAQAAn2HFDgvJlSLh46QI3qr8ex9MMI3zf3q3Jmq/64AlFpYagdSolmjbWZMB2EoVsSjFs/FvZKSuZm8l4miXSBxiQMclO2rxxNAYSP823upmSLUZVN3h+TSP1ILkTHytJ+AIU1D32KFUTLc6VlJ99bcDWIbsYqYiMTBQQN1ZZozJbOdJ1Ral0uXPCMl2n5QpCVkXobA1SV+IBUaXDLUtarf1dApEdl8bC2NfsZkE4GiVVZ0PfDyyhcjLIUAgMTW92MmMKw3ze+mdfrGEO8gtcWe6kNUfAGc00beNgKvIco1xtS78h66XbTkKtnRvRIH7EKrXePuT0lu1tvrr8bFotdBuES2eCZhSAFD52C6ZryYrYvAsivFA3twVw30LEv7FrZnrlOU4pXA=~-1~-1~-1",
        "bm_sz": "56CD5C8FBA8CA793B5BE4599AFF4074B~YAAQOf8xF/sy2u2OAQAAn2HFDhcjkELy7cDnYji7LQ9fPtktM/YvToigDP6Lt6qiw5i8ZyqThg/13nA+02vlyeJlE9iu49tSTeMXcqTrsOs2+EJBbn01ZIuvNKZOYeSkL6D8/zcd9nPdIYEA8mMhfE79HWWvhEbj2Ajh7jldK4m7DzZENRKaueoaj/HWjiYcuyf805vD/Z8IpTqJMUbG5EQ28qH4ju6nugwXhPO3RQ9xh4DwY9XT56T/JKnH+rUug1iTRfoDGPvLgd6mVCB/VoVxLrmt/Xp2oAphofzGVcmWsiqvRZik7f0ifOCLlfBsK/pmbm0EhjXIwjzooo42V0xmPFy0V/owdyUxOrCILtjhD99lkATJu1GC31ym58jwmoDQmtMEc7bZumFppWdfPDK3e0NvWgWoMDE2+ykYxy3FLQ==~3355973~3617094"
    },
	"proxy": "http://user:pwd@fadfs.com:4324325"
}

响应参数

参数名

类型

说明

code

int

接口状态

msg

int/string

正常是1,异常是报文

url

string

返回的url

response

string

网站响应

headers

json

响应表头

cookies

json

响应cookies

返回示例

{
	"code": 200,
	"msg": 1,
	"url": "https://baidu.com",
	"response": "",
	"headers": {
		"Cache-Control": "no-cache, private",
		"Content-Type": "application/json",
		"Date": "Wed, 06 Mar 2024 09:50:23 GMT",
		"Server": "Apache",
		"Tracecode": "30232124930424056586030617",
		"Vary": "Accept-Encoding",
		"Transfer-Encoding": "chunked"
	},
	"cookies": {}
}

常见错误

状态码

报文

说明

500

shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory

一般不会出现,不用管

500

HTTP/2 stream 1 was not closed cleanly

一般是akm的网站,换一个最新的akm ck

500

BoringSSL SSL_connect(有这个字样的)

ssl连接问题,忽略

500

ReadTimeout

后台服务超时

200

<html><head><title>502 Bad Gateway</title></head><body><center><h1>502 Bad Gateway</h1></center><hr><center>nginx/1.20.1</center></body></html>

ng服务问题,忽略

500

CONNECT tunnel failed, response 502

CONNECT tunnel failed, response 490

代理没连接上/网站拒绝代理,检查一下代理

500

Failure when receiving data from the peer

同上

500

Server disconnected without sending a response

同上

500

Operation timed out after 2751 milliseconds with 0 bytes received

Connection timed out after 30001 milliseconds

代理超时

500

All connection attempts failed

连接断了,一般不多

500

argument list too long: '/bin/sh'

一般是curl类型的报错,报文太长了,换别的类型试试