CURL is a tool to transfer data from or to a server, using one of the supported protocols (DICT, FILE, FTP, FTPS, GOPHER, HTTP, HTTPS, IMAP, IMAPS, LDAP, LDAPS, POP3, POP3S, RTMP, RTSP, SCP, SFTP, SMB, SMBS, SMTP, SMTPS, TELNET and TFTP).
If you want to redirect to url along with POST variables, then use the below CURL script:
$data = array("name" => "Ross", "php_master" => true);
// You can POST a file by prefixing with an @ (for Choose File fields)
$data["file"] = "@/home/user/world.jpg";
$handle = curl_init($url);
curl_setopt($handle, CURLOPT_POST, true);
curl_setopt($handle, CURLOPT_POSTFIELDS, $data);