Hi,
I am trying upload files to a remote server using CURL however It is not sending all the values in the array.
$auth_local='testing123';
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $auth_remote_url[$auth_no] );
curl_setopt($ch, CURLOPT_POST, TRUE);
$post_array = array(
"auth"=>$auth_local,
"auth_e"=>$auth_e,
"my_file"=>"@".$myfile,
"md5"=>$md5,
"check"=>"0",
"upload"=>"Upload");
curl_setopt($ch, CURLOPT_USERAGENT, "Test Upload");
curl_setopt($ch, CURLOPT_POSTFIELDS, $post_array);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
$response = curl_exec($ch );
curl_close($ch );
When I check the value of $_POST['auth'] it is blank.
When I remove
"my_file"=>"@".$myfile,
It does read the correct value
Why is this not returning a value?
Thanks,
mme