Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--data-raw can not support #300

Open
xiamaoxuan opened this issue Aug 16, 2023 · 4 comments
Open

--data-raw can not support #300

xiamaoxuan opened this issue Aug 16, 2023 · 4 comments

Comments

@xiamaoxuan
Copy link

--data-raw
--compressed

can not support

@libetl
Copy link
Owner

libetl commented Aug 19, 2023

Hi, have any examples so I can make an unit test ?

@xiamaoxuan
Copy link
Author

curl 'https://ug.baidu.com/mcp/pc/pcsearch'
-H 'Accept: /'
-H 'Accept-Language: zh-CN,zh;q=0.9'
-H 'Connection: keep-alive'
-H 'Content-Type: application/json'
-H 'DNT: 1'
-H 'Origin: https://www.baidu.com'
-H 'Referer: https://www.baidu.com/s?wd=111&rsv_spt=1&rsv_iqid=0xc87b3b8300066ce7&issp=1&f=8&rsv_bp=1&rsv_idx=2&ie=utf-8&tn=baiduhome_pg&rsv_dl=tb&rsv_enter=1&rsv_sug2=0&rsv_btype=i&inputT=506&rsv_sug4=566'
-H 'Sec-Fetch-Dest: empty'
-H 'Sec-Fetch-Mode: cors'
-H 'Sec-Fetch-Site: same-site'
-H 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36'
-H 'sec-ch-ua: "Chromium";v="116", "Not)A;Brand";v="24", "Google Chrome";v="116"'
-H 'sec-ch-ua-mobile: ?0'
-H 'sec-ch-ua-platform: "Windows"'
--data-raw '{"invoke_info":{"pos_1":[{}],"pos_2":[{}],"pos_3":[{}]}}'
--compressed

@xiamaoxuan
Copy link
Author

@libetl

@libetl
Copy link
Owner

libetl commented Sep 4, 2023

Hi,
yes I saw your message last weekend. I was focusing on other projects.
I'll take a look quite soon.

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants