Welcome Guest, Not a member yet? Register   Sign In
Fetching $_POST data from other site gets nothing
#1

[eluser]rockstyle[/eluser]
Code:
$_POST
is send to my site by outside site. But this gets nothing but empty array.
Either
Code:
$_POST
or
Code:
$this->input->post('any_parameter');
is empty.

This is my code
Code:
public function process($parameter = '')
{
print_r($_POST);
print_r($this->input->post('control'));
var_dump($this->input->is_ajax_request());
var_dump($this->input->post('control'));

}

All it returns are empties: null and falses. I know this from debug data from that other site. All this is done by referral (site), so user_agent is empty also.

Also! When i didn't have .htaccess file other site would get only 403 or 404 error page.

Code:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
&lt;html&gt;&lt;head>
&lt;title&gt;403 Forbidden&lt;/title&gt;
&lt;/head&gt;&lt;body>
<h1>Forbidden</h1>
<p>You don't have permission to access /index.php/home/process/
on this server.</p>
<p>Additionally, a 404 Not Found
error was encountered while trying to use an ErrorDocument to handle the request.</p>
<hr>
<address>Apache/2.2.19 (Unix) mod_ssl/2.2.19 OpenSSL/0.9.8e-fips-rhel5 DAV/2 mod_qos/9.68 Server at address Port 80</address>
&lt;/body&gt;&lt;/html>

When htaccess is present, it gets nulls.

Thanks in advance Wink
#2

[eluser]rockstyle[/eluser]
Anybody can help me with this?
#3

[eluser]CodeIgniteMe[/eluser]
Is the other website working when visited normally?
Have you checked for misspelled website names and parameters?
Check whether "Global XSS Filtering" and "Cross Site Request Forgery" from your config file should be enabled on your CI installation
#4

[eluser]smilie[/eluser]
How are you exactly posting data to your website?
Try, just for the fun of it:

Code:
print_r($_GET);

that you are not accidentally passing GET data instead of POST data.

Cheers,
Smilie
#5

[eluser]rockstyle[/eluser]
The other website is working. This is not misspell. It's not $_GET. This must be htaccess...
#6

[eluser]rockstyle[/eluser]
Is it possible that data is not send while sender is like https://ssl.blablabla.com (from encrypted connection?)




Theme © iAndrew 2016 - Forum software by © MyBB