From a9e8c776ba53f6314093f06d5e82e709e2e7ec7e Mon Sep 17 00:00:00 2001 From: Paul J R Date: Tue, 17 Nov 2009 04:24:26 +1100 Subject: [PATCH] added a bit to pull the data from the req --- src/web/index.html | 8 ++++---- src/webconnector.go | 4 +++- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/web/index.html b/src/web/index.html index 4d7ce6b..a772842 100644 --- a/src/web/index.html +++ b/src/web/index.html @@ -9,7 +9,7 @@

Go DB Hammer

- \ No newline at end of file + diff --git a/src/webconnector.go b/src/webconnector.go index ee42713..127d168 100644 --- a/src/webconnector.go +++ b/src/webconnector.go @@ -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); } -- 1.7.0.4