git-svn-id: http://xe-core.googlecode.com/svn/sandbox@5949 201d5d3c-b55e-5fd7-737f-ddc643e51545

This commit is contained in:
zero 2009-03-24 07:20:09 +00:00
parent 1fe6a3bae4
commit 15a9d734c0

View file

@ -55,16 +55,10 @@
strlen($content)
);
if($content) $header.=$content."\r\n\r\n";
/******************* 게이트웨이용 임시 코드 ****************************/
$fp = fsockopen("blog.nzeo.com", 80);
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);
$fp = fsockopen($host, $port);
if(!$fp) return null;
fwrite($fp, $header);
$started = false;
while(!feof($fp)) {