made api_test post to index.php in same dir