[Galaxy Tab Q&A, Help & Troubleshooting] daniel.weck:
Here's the PHP script output using:

getUpdateInfo('UK', 'GT-P1000HKDCPW', 'P1000XWJJ3/P1000CPWJJ3/P1000XXJID/P1000XWJJ3');

(Note: HIDSWVER is the last series of codes)

===>

UK / GT-P1000HKDCPW / P1000XWJJ3/P1000CPWJJ3/P1000XXJID/P1000XWJJ3
---------------------------------------------------------------------------------
LATEST_FW_VERSION	P1000XWJJ3/P1000CPWJJ3/P1000XXJID/P1000XWJJ3
BINARY_URI	http://fus.samsungmobile.com/Phone_Binary/9/deleted
LAST_MODIFIED	10/11/01
CURRENT_DISPLAYVERSION	P1000XWJJ3/P1000CPWJJ3/P1000XXJID/P1000XWJJ3
LATEST_DISPLAYVERSION	P1000XWJJ3/P1000CPWJJ3/P1000XXJID/P1000XWJJ3

<?php
define('CLIENT_VERSION', '1.5.3.10103.102');
define('MAGICNUM', '1.5.3.10103.99');

function htmlTop()
{
echo '<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Smashing HTML5!</title>
</head>
<body>
<pre>';
}

function htmlBottom()
{
echo '</pre>
</body>
</html>';
}

function formatXML($ProductCode, $HIDSWVER)
{
if (strlen($ProductCode) != 14)
die('Invalid ProductCode: ' + $ProductCode);

$HIDSWVERx = explode('/', $HIDSWVER);
if (count($HIDSWVERx) != 4)
die('Invalid HIDSWVER: ' + $HIDSWVER);
if ($HIDSWVERx[0] != $HIDSWVERx[3])
die('Can not handle HIDSWVER: ' + $HIDSWVER);

$DEVICE_MODEL_NAME = substr($ProductCode, 0, 8);
$DEVICE_BUYER_CODE = substr($HIDSWVERx[0], 5, 2);
$DEVICE_PRODUCT_CODE = substr($ProductCode, -3);

$data = '<?xml version="1.0" encoding="UTF-8"?>
<FUSMsg>
<FUSHdr>
<ProtoVer>1.0</ProtoVer>
<SessionID>0</SessionID>
<MsgID>1</MsgID>
</FUSHdr>
<FUSBody>
<Put>
<CmdID>1</CmdID>
<UPGRADE_MODE>
<Data>0</Data>
</UPGRADE_MODE>
<CLIENT_LANGUAGE>
<Type>String</Type>
<Type>ISO 3166-1-alpha-3</Type>
<Data>0415</Data>
</CLIENT_LANGUAGE>
<CLIENT_PRODUCT>
<Data>Kies</Data>
</CLIENT_PRODUCT>
<CLIENT_VERSION>
<Data>' . CLIENT_VERSION . '</Data>
</CLIENT_VERSION>
<MAGICNUM>
<Data>' . MAGICNUM . '</Data>
</MAGICNUM>
<DEVICE_ANDROID_PDA_VERSION>
<Data>' . $HIDSWVERx[0] . '</Data>
</DEVICE_ANDROID_PDA_VERSION>
<DEVICE_ANDROID_CSC_VERSION>
<Data>' . $HIDSWVERx[1] . '</Data>
</DEVICE_ANDROID_CSC_VERSION>
<DEVICE_ANDROID_PHONE_VERSION>
<Data>' . $HIDSWVERx[2] . '</Data>
</DEVICE_ANDROID_PHONE_VERSION>
<DEVICE_ANDROID_CONTENTS_VERSION>
<Data>' . $HIDSWVERx[3] . '</Data>
</DEVICE_ANDROID_CONTENTS_VERSION>
<DEVICE_PLATFORM>
<Data>AndroidGSM</Data>
</DEVICE_PLATFORM>
<DEVICE_MODEL_NAME>
<Data>' . $DEVICE_MODEL_NAME . '</Data>
</DEVICE_MODEL_NAME>
<DEVICE_FW_VERSION>
<Data>' . $HIDSWVER . '</Data>
</DEVICE_FW_VERSION>
<DEVICE_BUYER_CODE>
<Data>' . $DEVICE_BUYER_CODE . '</Data>
</DEVICE_BUYER_CODE>
<DEVICE_PRODUCT_CODE>
<Data>' . $DEVICE_PRODUCT_CODE . '</Data>
</DEVICE_PRODUCT_CODE>
</Put>
<Get>
<CmdID>2</CmdID>
<LATEST_FW_VERSION/>
</Get>
</FUSBody>
</FUSMsg>';

$data = str_replace("\n", '', $data);
$data = str_replace("\t", '', $data);

return $data;
}

function downloadUpdateInfo($ProductCode, $HIDSWVER)
{
$headers = array(
'POST /MS_TEST/msfus.php HTTP/1.1',
'Content-Type: appliction/x-www-form-urlencoded',
'User-Agent: SAMSUNG_KIES',
'Host: fus.samsungmobile.com',
'Content-Length: 1146',
'Expect: 100-continue',
'Connection: Keep-Alive',
);
$data = formatXML($ProductCode, $HIDSWVER);

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'http://fus.samsungmobile.com/MS_TEST/msfus.php');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_TIMEOUT, 60);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);

return curl_exec($ch);
}

function getUpdateInfo($name, $ProductCode, $HIDSWVER)
{
$doc = new DOMDocument();
$doc->loadXML(downloadUpdateInfo($ProductCode, $HIDSWVER));

echo $name, ' / ', $ProductCode, ' / ', $HIDSWVER, PHP_EOL;
echo '---------------------------------------------------------------------------------', PHP_EOL;
$LATEST_FW_VERSION = trim($doc->getElementsByTagName('LATEST_FW_VERSION')->item(0)->nodeValue);
if (empty($LATEST_FW_VERSION)) {
echo 'No firmware info for given data.', PHP_EOL, PHP_EOL;
return;
}
echo 'LATEST_FW_VERSION', "\t", $LATEST_FW_VERSION, PHP_EOL;
echo 'BINARY_URI', "\t\t", $doc->getElementsByTagName('BINARY_URI')->item(0)->nodeValue, PHP_EOL;
echo 'LAST_MODIFIED', "\t\t", $doc->getElementsByTagName('LAST_MODIFIED')->item(0)->nodeValue, PHP_EOL;
echo 'CURRENT_DISPLAYVERSION', "\t", $doc->getElementsByTagName('CURRENT_DISPLAYVERSION')->item(0)->nodeValue, PHP_EOL;
echo 'LATEST_DISPLAYVERSION', "\t", $doc->getElementsByTagName('LATEST_DISPLAYVERSION')->item(0)->nodeValue, PHP_EOL;
echo PHP_EOL, PHP_EOL;
}

if (!defined('STDIN'))
htmlTop();

getUpdateInfo('UK', 'GT-P1000HKDCPW', 'P1000XWJJ3/P1000CPWJJ3/P1000XXJID/P1000XWJJ3');

if (!defined('STDIN'))
htmlBottom();
?>