requests post parameter error

Asked 6 days ago, Updated 6 days ago, 1 views

with ssesion requests. () as s : in the door. After logging in the session cookies to be set up the state. (get, json) another page output is well.
In the case of the following page I error, a request for post.
Where's the matter?

s.headers = {
    'Accept': '*/*',
    'Accept-Encoding': 'gzip, deflate, br',
    'Accept-Language': 'ko,en-US;q=0.9,en;q=0.8,fr;q=0.7',
    'Connection': 'keep-alive',
    'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
    'Host': '',
    'Origin': '',
    'Referer': '',
    'sec-ch-ua': '"Chromium";v="92", " Not A;Brand";v="99", "Google Chrome";v="92"',
    'sec-ch-ua-mobile': '?0',
    'Sec-Fetch-Dest': 'empty',
    'Sec-Fetch-Mode': 'cors',
    'Sec-Fetch-Site': 'same-origin',
    'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.159 Safari/537.36',
    'X-Requested-With': 'XMLHttpRequest'

data = {
        "Keyword": "Valve",
        "IsConvertSingleGoods":"N" },
    'page': 1,
    'start': 0,
    'limit': 20,
    'group' : [{"property":"SingleGoodsNo","direction":"ASC"}]

res =,data=data, headers = headeres).json()

{'Result': None, 'ResultBase': {'ReturnErrorMessage': 'Invalid JSON default format: Keyword', 'ReturnErrorCode': '999999', 'ReturnDomain': 'A', 'ActionCode': 'L'}, 'ExceptionMessage' error occurred.'}

I have attached an additional image below. The cookie in the request header was too long, so the screen was cut. If you look at the 4th preview image, the data is printed well in json format.

requests python

2022-09-20 15:12

1 Answers

It says it doesn't exist.

2022-09-20 15:12

If you have any answers or tips

© 2022 pinfo. All rights reserved.