Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // urgh, why is this connection not being called
- resp, err := http.PostForm("http://127.0.0.1:3004/provision", url.Values{"space": {details.ProvisionedSpace}})
- if err != nil {
- log.Printf("error here: %s", err)
- }
- // lets try if we do this a different way (via http Request)
- // still doesn't work. hmm
- client := &http.Client{}
- req, err := http.NewRequest("POST", "http://localhost:3004/provision", nil)
- if err != nil {
- log.Printf("error making request %s", err)
- }
- resp, err := client.Do(req)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement