Web Service with rebound

Web Service with rebound

by Gaultier Tevz -
Number of replies: 0

Hi, 

I'm really new to Web Services, and I have a little question for you champions ! 3b63d1616c5dfcf29f8a7a031aaa7cad.gif 

So, I have an URL to get informations in JSON, this URL is something like : http://10.200.200.10/webservice/date/28-02-2017/ 
When I make a cURL in PHP on this URL, I get the JSON formatted message, so that works. 

But for now, I have another constraint : 

should have a script between the first PHP script and the final URL. So, I'll have to call something like http://20.500.500.20/get-ws/, which has to get http://10.200.200.10/webservice/date/28-02-2017/

How could I get, on my first PHP script, the result of the final API if there is another script between ? 

I tried to do a cURL with the first PHP that calls the second script which makes itself another cURL, but it doesn't work ! 
How should I do ? 

Thanks for your answers 3b63d1616c5dfcf29f8a7a031aaa7cad.gif

Average of ratings: -