added a bit to pull the data from the req
[goDBhammer.git] / src / webconnector.go
index ee42713..127d168 100644 (file)
@@ -34,7 +34,9 @@ func JSONResponder(c *http.Conn, req *http.Request)
                fmt.Printf("i got a get\n");
        }
        if(req.Method == "POST") {
-               fmt.Printf("i got a post...\n");
+               lp := make([]byte, 1048576);
+               req.Body.Read(lp);
+               fmt.Printf("i got a post...%s\n", (string)(lp));
                http.Redirect(c, "/", 301);
        }