summaryrefslogtreecommitdiff
path: root/send.go
diff options
context:
space:
mode:
Diffstat (limited to 'send.go')
-rw-r--r--send.go17
1 files changed, 17 insertions, 0 deletions
diff --git a/send.go b/send.go
index b04b503..24db913 100644
--- a/send.go
+++ b/send.go
@@ -51,6 +51,23 @@ func listPatches() error {
return nil
}
+func doRegister(newurl string) error {
+ var url string
+ url = me.urlbase + "/register?url=" + newurl
+ body, err := httpPost(url, nil)
+ if err != nil {
+ log.Info("httpPost() failed:", err)
+ return err
+ }
+
+ test := strings.TrimSpace(string(body))
+ for _, line := range strings.Split(test, "\n") {
+ line = strings.TrimSpace(line)
+ log.Info("server returned:", line)
+ }
+ return nil
+}
+
func getPatch(pbfile string) error {
url := me.urlbase + "/patchsetget?filename=" + pbfile
log.Info("getPatch() url", url)