// http ヘッダーオプション
$http_header = array(
'User-Agent' => "Mozilla/4.0 (JenkinsBrowser/1.4)",
'Referer' => "
http://same.ula.cc/test/write.php?guid=ON",
);
if ($postdata['USER_AGENT']) $http_header['User-Agent'] = $postdata['USER_AGENT'];
if ($postdata['X_DCMGUID']) $http_header['X-DCMGUID'] = $postdata['X_DCMGUID'];
if ($postdata['X_UP_SUBNO']) $http_header['X-UP-SUBNO'] = $postdata['X_UP_SUBNO'];
if ($postdata['X_JPHONE_UID']) $http_header['X-JPHONE-UID'] = $postdata['X_JPHONE_UID'];
if ($postdata['X_EM_UID']) $http_header['X-EM-UID'] = $postdata['X_EM_UID'];
if ($postdata['X_P2_CLIENT_IP']) $http_header['X-P2-Client-IP'] = $postdata['X_P2_CLIENT_IP'];
if ($postdata['X_P2_CLIENT_HOST']) $http_header['X-P2-Client-Host'] = $postdata['X_P2_CLIENT_HOST'];
if ($postdata['X_P2_Mobile_Serial_BBM']) $http_header['X_P2_MOBILE_SERIAL_BBM'] = $postdata['X_P2_Mobile_Serial_BBM'];
// print_r($http_header);
// HTTP_Requestの初期化
$http = new HTTP_Request($url, $http_option);