3ee1f063525029a7d6e9a2a9ed14ef6394ef536b.svn-base 275 B

12345678910111213
  1. package util
  2. import (
  3. "fmt"
  4. "testing"
  5. )
  6. func Test_PostWithFormData(t *testing.T){
  7. postData := make(map[string]string)
  8. postData["formData"] = "{}"
  9. data := PostWithFormData("POST", "http://120.48.30.31:88/kaps-cow/api/tmr/addOtherDevice", &postData)
  10. fmt.Println(data)
  11. }