-
Notifications
You must be signed in to change notification settings - Fork 37
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
POST don't send any params #17
Comments
|
excerpt from www.php.net/manual/en/reserved.variables.post.php as you can see the sent data is json and not x-www-form-urlencoded therefore $_POST is empty. |
Dont give result |
|
To get the request body in PHP: $body = file_get_contents('php://input');Then use json_decode to parse it as JSON. |
|
setting the header does not implicitly change the format of the request body. an example: {
"a": "b"
}while an application/x-www-form-urlencoded looks like this: a=bas you can see those are inherently different - changing the header won't change the actual body content and formatting. |
This resolve is good and works :) Thanks |
|
hi, and plugin using this but i still got blank on my web server.. but if i use curl on my gameserver, its working fine |
|
@ErikMinekus its correct right? |
I created simple debugging script in PHP for check if rest in pawn sending POST data to target HTTP but can't see any POST data in apache logs i see request from my csgo server.
https://pastebin.com/0e2ecBdk
Output JSON file:
[[],[],[]]Plugin:
https://pastebin.com/5zbUtY8U
The text was updated successfully, but these errors were encountered: