From: Paul J R Date: Mon, 16 Nov 2009 17:24:26 +0000 (+1100) Subject: added a bit to pull the data from the req X-Git-Url: http://git.pjr.cc/?p=goDBhammer.git;a=commitdiff_plain;h=a9e8c776ba53f6314093f06d5e82e709e2e7ec7e added a bit to pull the data from the req --- 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); }