I have a page that is meant to receive a curl request from another server.
I need to format this curl request to another format.
so I have this code
<?php
$id = (isset($_GET['msgid']) ? $_GET['msgid'] : 'null');
$from = (isset($_GET['from']) ? $_GET['from'] : 'null');
$body = (isset($_GET['content']) ? $_GET['content'] : 'null');
$status = (isset($_GET['status']) ? $_GET['status'] : 'null');
header("location: ../action/receive_message/$id/$from/$body/$status");
?>
so, if someone was to launch a curl request to
http://example.com/intercept/test.php?id=123&from=me&body=something;
Will that call
http://example.com/action/123/me/something/null?
Or if not is there a way i can get it to?
The other one is.
Is there a way I can do this in .htaccess? So I dont have to create a seperate file for this?