diff --git a/modules/planet/libs/me2day.api.php b/modules/planet/libs/me2day.api.php index dfb4afca5..b9163cea3 100644 --- a/modules/planet/libs/me2day.api.php +++ b/modules/planet/libs/me2day.api.php @@ -56,17 +56,9 @@ ); if($content) $header.=$content."\r\n\r\n"; - /******************* 게이트웨이용 임시 코드 ****************************/ - $fp = fsockopen("blog.nzeo.com", 80); + $fp = fsockopen($host, $port); if(!$fp) return null; - $body = "body=".base64_encode($header); - fwrite($fp, "POST /me2gateway.php HTTP/1.0\r\nHost: blog.nzeo.com\r\nContent-Type: application/x-www-form-urlencoded\r\nContent-Length: ".strlen($body)."\r\n\r\n".$body."\r\n\r\r"); - /***********************************************************************/ - - - //$fp = fsockopen($host, $port); - //if(!$fp) return null; - //fwrite($fp, $header); + fwrite($fp, $header); $started = false; while(!feof($fp)) {