I need to call a remote API using URL such http://api.remote-server.com/rest/?method=add_user&api_key=123&value=value1. If I paste this url directly in my browser url barre this work well. What I would like is simply call this url through a php file such myscript.php.
I'm not a php coder and I made some search about but did not find how to do (and especially how to search for such basic case). I tried for example this:
<?php
header("http://api.remote-server.com/rest/?method=add_data&api_key=12345&value=value1");
exit;
?>
but this don't work. Any clue ?