Skip to content

Instantly share code, notes, and snippets.

@vtolstov
Created December 16, 2015 13:31
Show Gist options
  • Save vtolstov/093367574745cdbf747c to your computer and use it in GitHub Desktop.
Save vtolstov/093367574745cdbf747c to your computer and use it in GitHub Desktop.
test.go
// +build ignore
package main
import (
"bytes"
"fmt"
"net/http"
)
func main() {
res, err := http.Post("http://api.ix.clodo.ru/servers/agent_log/?vps=5591-444&token=a708b02ff3df5eef61d70254b7ee3354", "text/plain", bytes.NewBufferString("HEELO DENIS"))
fmt.Printf("%+v\n", res)
if err != nil {
panic(err)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment