Location: PHPKode > scripts > HTTPS Request send files & custom headers > https-request-send-files-custom-headers/example.php
<?php

require_once 'HttpsRequest.class.php';
		
	//send file

	$request = new HttpsRequest($user,$pass);	
	$request->send_file($url, '/home/ftp/playftp/tmp/'.$file);

	//send custom headers
	
	$headers = array();
	$headers[] = "ReportName: Order";
	$headers[] = "NumberOfDays: 1";

	$res = $request->send_custom_headers($url,$headers);


?>
Return current item: HTTPS Request send files & custom headers