Well, actually, I'm passing a $POST form to an "actions" page on the site (most of the actual querying is done on a separate actions page; it's really neat). Anyhow, this actions page then sends these $POST vars (the $POST vars contain a license key, the domain, a client username and password, and the actual backup query in a hidden input) to the remote page (mysqlquickadmin.com/page.php) through fsockopen, fwrite, and fread. Those $POST vars were laid out like such (look at the headers above). I just want help passing the vars to the remote page via fsockopen with headers along these lines (found this in the manual comments):
$boundary = "---------------------".substr(md5(rand(0,32000)),0,10);
// Build the header
$header = "POST $remote_url HTTP/1.0\r\n";
$header .= "Host: $remote_server\r\n";
$header .= "Content-type: multipart/form-data, boundary=$boundary\r\n";
// attach post vars
foreach($_POST AS $index => $value){
$data .="--$boundary\r\n";
$data .= "Content-Disposition: form-data; name=\"".$index."\"\r\n";
$data .= "\r\n".$value."\r\n";
$data .="--$boundary\r\n";
}
I was attempting this originally, but I couldn't get it to work. Thanks again!