tagging having a form upload for the client

This commit is contained in:
Vincent Batts 2013-08-22 17:29:07 -04:00
parent ea2be195af
commit 1c14a76877
1 changed files with 13 additions and 0 deletions

View File

@ -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
}