projects
/
goDBhammer.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
added a bit to pull the data from the req
[goDBhammer.git]
/
src
/
webconnector.go
diff --git
a/src/webconnector.go
b/src/webconnector.go
index
ee42713
..
127d168
100644
(file)
--- 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);
}