Rest Variable Problem |
[eluser]Julian_Omaha[/eluser]
I am getting my REST connection working fine. When I pass no variables, it works fine. When I add a variable (shown below). I am getting a 404. Any advice? $this->load->library('curl'); $this->load->library('rest', array( 'server' => 'http://www dot domain dot com/webservices/onduty/', 'http_user' => 'admin', 'http_pass' => '1234', 'http_auth' => 'basic' )); $user = $this->rest->get('crewsOnduty', array('customer_id' => '1'), 'XML'); $data['employee'] = $user; $this->load->helper('url'); $this->load->view('welcome_message', $data);
[eluser]Phil Sturgeon[/eluser]
If you are connecting to a CodeIgniter Rest Server you need to make sure your CodeIgniter config is set up to work with GET variables. http://ellislab.com/forums/viewthread/99570/ |
Welcome Guest, Not a member yet? Register Sign In |