-
Notifications
You must be signed in to change notification settings - Fork 408
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
Request use file_get_contents #40
Comments
I'm fairly certain this wouldn't fix your problem, php://input is a wrapper to access stdin using the standard file handling functions like readfile(), file() and file_get_contents(). The curl extension as far as I'm aware has no support for this. You might be able to get around the restrictions on your server using some of the information displayed here: http://php.net/manual/en/wrappers.php.php (eg: $HTTP_RAW_POST_DATA) but even so I doubt this will be added into Flight. |
Hi, thanks for info. Currently I am working on localhost, where allow_fopen is enabled. But in this case is not an external link, right? On my server is disabled only for external link. It's first time that I see this method. I will check into link that you kindly provide. Thanks |
Chances are on such a limited server you are never going to be doing request methods other than GET and POST so I would just comment that line out or not worry about it, it will always be empty. Also if this is actually disabled by |
Thank you Kafene. I will go to close this as solved. Best regards |
Hi,
I see that Request class use file_get_contents function.
This is disable on my server for security reason.
On line 53 there is:
'body' => file_get_contents('php://input')
Can you replace this with cURL example:
The text was updated successfully, but these errors were encountered: