I have a script on my server, all it does it sit there wait for someone to post an image to it. And reponse with an "OK" if it's successful. The problem I'm having is that when the script return the ok....it also returns a whole bunch of junks in the header that I don't want. Is there a way to clean it up?
Here is the header return:
HTTP/1.1 200 OK Date: Fri, 20 Apr 2001 21:13:32 GMT Server: Apache/1.3.19 (Unix) PHP/4.0.4pl1 X-Powered-By: PHP/4.0.4pl1 Connection: close Transfer-Encoding: chunked Content-Type: text/html 3 OK 0
I don't need the X-Powered-By or Transfer-Encoding.......and also no idea where the 3 and 0 comes from =[ any idea?
here is the script that listen to the post:
<?php
include_once "stuff.inc";
if (isset($transactionid) && isset($HTTP_RAW_POST_DATA)) {
$foo = new RCorel($clientid, $transactionid);
if ($foo->putImage($HTTP_RAW_POST_DATA))
echo "OK";
}
?>
any idea, why it return so much junk instead of just an "OK"?