11-05-2008, 07:02 AM
[eluser]sramage[/eluser]
Hi !
I'm new in CI and I'm trying to replace a XML-RPC server and client written using this lib http://phpxmlrpc.sourceforge.net by CI XML-RPC classes.
I need some security around this server so I have implemented a little HTTP Basic authentication on the server by adding this on the server controler :
it's works !
now I'm trying to make a client working, but it can't connect using something like "http://username:[email protected]/index.php/rpc"
How can I secure my server? is HTTP Authentification the solution? How make it to work ?
Thank you
Hi !
I'm new in CI and I'm trying to replace a XML-RPC server and client written using this lib http://phpxmlrpc.sourceforge.net by CI XML-RPC classes.
I need some security around this server so I have implemented a little HTTP Basic authentication on the server by adding this on the server controler :
Code:
$user = $this->input->server('PHP_AUTH_USER');
$password = $this->input->server('PHP_AUTH_PW');
if ($user != $RPC_USER OR $password != $RPC_PASSWORD){
Header('WWW-Authenticate: Basic realm="rpc"');
Header('HTTP/1.0 401 Unauthorized');
exit();
}
it's works !
now I'm trying to make a client working, but it can't connect using something like "http://username:[email protected]/index.php/rpc"
How can I secure my server? is HTTP Authentification the solution? How make it to work ?
Thank you