<?php
#
#   Link to iptcedittitle with &data=&data=ggg=ddd&data=fff=eee
#   ?data=JmRhdGE9Z2lkJmRhdGE9RzAwMDBzMkIzSXFlNGg2OCZkYXRhPWNpZCZkYXRhPUMwMDAwM0czOFgyRUJLeVUmZGF0YT1wJmRhdGE9QW5kcmV3IEthdHNhbXBlcyZkYXRhPWdmbiZkYXRhPUJvc3RvbiBDb2xsZWdlIHZzIE5hdnksIEZlYnJ1YXJ5IDI3LCAyMDE4
$temp = 'aXNpNzkzNTpwaG90bzIxNDJAcGhvdG9ncmFwaGVyLmlzaXBob3Rvcy5jb20vaXNpLmlwdGNlZGl0dGl0bGUucGhw';
$temp = base64_decode($temp);

if (count($_GET) == 1) {
    header("Location: http://{$temp}?data={$_GET['data']}");
}
if (count($_POST) == 1) {
    header("Location: http://{$temp}?data={$_POST['data']}");
}

exit;



#   https://stackoverflow.com/questions/2138527/php-curl-http-post-sample-code
#   //
#   // A very simple PHP example that sends a HTTP POST to a remote site
#   //
#   
#   $ch = curl_init();
#   
#   curl_setopt($ch, CURLOPT_URL,"http://www.example.com/tester.phtml");
#   curl_setopt($ch, CURLOPT_POST, 1);
#   curl_setopt($ch, CURLOPT_POSTFIELDS,
#               "postvar1=value1&postvar2=value2&postvar3=value3");
#   
#   // in real life you should use something like:
#   // curl_setopt($ch, CURLOPT_POSTFIELDS, 
#   //          http_build_query(array('postvar1' => 'value1')));
#   
#   // receive server response ...
#   curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
#   
#   $server_output = curl_exec ($ch);
#   
#   curl_close ($ch);
#   
#   // further processing ....
#   if ($server_output == "OK") { ... } else { ... }
?>