From 1c14a76877e38d014ad38fa1aee1c43065ac01f1 Mon Sep 17 00:00:00 2001 From: Vincent Batts Date: Thu, 22 Aug 2013 17:29:07 -0400 Subject: [PATCH] tagging having a form upload for the client --- client/client.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/client/client.go b/client/client.go index 33ccbd4..44c0bdd 100644 --- a/client/client.go +++ b/client/client.go @@ -5,6 +5,7 @@ import ( "io/ioutil" "mime" "net/http" + "net/url" "os" "path/filepath" ) @@ -25,3 +26,15 @@ func PutFileFromPath(host, filename string) (path string, err error) { } return string(bytes), nil } + +func hurr() { + values := make(url.Values) + values.Set("email", "anything@email.com") + values.Set("name", "bob") + values.Set("count", "1") + r, err := http.PostForm("http://example.com/form", values) + if err != nil { + return + } + _ = r +}