//$url = 'https://technoplus-pro.com/get_price';
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, array(
'username' => $login,
'password' => $pass,
));
$output = curl_exec($ch);
curl_close($ch);
$fp = fopen(__DIR__ . '/attach/tecnoplus.xml', 'w');
fwrite($fp, $output);
fclose($fp)