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

php://input can't obtain data normally #56

Open
sillenge opened this issue Jan 20, 2025 · 1 comment
Open

php://input can't obtain data normally #56

sillenge opened this issue Jan 20, 2025 · 1 comment

Comments

@sillenge
Copy link

Regarding the basic mode, when there is no = in the post, the data cannot be obtained,but raw mode can get it;

<?php var_dump(file_get_contents("php://input")); ?>

basic:

post body:123

respond:string(0) ""


raw:

POST / HTTP/1.1
Sec-Ch-Ua: "Google Chrome";v="131", "Chromium";v="131", "Not_A Brand";v="24"
Sec-Ch-Ua-Mobile: ?0
Sec-Ch-Ua-Platform: Windows
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7
Sec-Fetch-Site: none
Sec-Fetch-Mode: navigate
Sec-Fetch-User: ?1
Sec-Fetch-Dest: document
Accept-Encoding: gzip, deflate, br, zstd
Accept-Language: zh-CN,zh;q=0.9,en;q=0.8

1123

respond:string(4) "1123"

@0140454
Copy link
Owner

0140454 commented Jan 21, 2025

This is known issue and no solution can be applied.

You can only use Raw mode to POST a payload without =.

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