How do I make a POST request when the post param has spaces in it? Eg. in bash I would do this:
curl -X POST "https://website.com/api" --data-urlencode "key=$SSHKey" <- "ssh-rsa abcde abc@abc.com"
I'm using the http.NewRequest method to send POST requests. http://golang.org/pkg/net/http/#NewRequest
reqURL := fmt.Sprintf("https://website.com/api?key=%s", "ssh-rsa abcde abc@abc.com")
client := &http.Client{}
r, _ := http.NewRequest("POST", reqURL, nil)
client.Do(r)