Reputation: 1
I need to send a request to a external web Service, My web service return a json. The 2 projects are local. The first is localhost/symfony... and the second localhost/login/index.php
$uri = "http://localhost/login/index.php";
$request = Request::create($uri, 'GET', array('test' => 'test'));
I do not know how to send the request and retrieve the response.
Upvotes: 0
Views: 333
Reputation: 105
you can use file_get_contents() to get the data in json format from your web service, and later you can parse it using json_decode().
Upvotes: 0