Hi. I am trying to post a file from one server to the other via cURL.

I have some example code here, the problem is I cant get the file to acutally submit to the server. I am also confused about this "@" used in the code. What does it mean?

Here is my example code:

Code:
$upload_url = 'http://www.examplesite.com/file.php';
			$params = array(
				'file'=>"@test.rtf",
				'test'=>'woo hoo!'
			);		

			$ch = curl_init();
			curl_setopt($ch, CURLOPT_VERBOSE, 1);
			curl_setopt($ch, CURLOPT_URL, $upload_url);
			curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
			curl_setopt($ch, CURLOPT_POSTFIELDS, $params);
			$response = curl_exec($ch);

			if (curl_errno($ch)) {
				echo "Error: ";
			    print curl_error($ch);
			}
			curl_close($ch);
			print "$response";
		
		}
The script that is handling this code (file.php in this example), I can get the variable "test" to post but not "file"--and that is the problem.

Any help would be appreciated
Thank you.