Python请求库不能复制AJAX

2024-09-30 02:18:21 发布

您现在位置:Python中文网/ 问答频道 /正文

我试图用requests模块复制此请求:

$.ajax({
            method: "GET",
            url: "/Game/PlaceLauncher.ashx",
            data: {
                request: "RequestGame",
                placeId: n,
                isPartyLeader: t,
                gender: i
            },
            crossDomain: !0,
            xhrFields: {
                withCredentials: !0
            }
        })

我该怎么做crossDomainxhrFields?在


Tags: 模块gameurldatagetrequestajaxrequests

热门问题