title: JQuery POST to Golang corrupts field names
body: <p>I have a JQuery script which includes the line </p>
  
  <pre><code>console.log("Killing "+selected)
  $.post("http://127.0.0.1:8080/delete_birloki",{ birloki: selected})
  </code></pre>
  
  <p>and it logs...</p>
  
  <pre><code>Killing france
  </code></pre>
  
  <p>The Golang handler starts with</p>
  
  <pre><code>func deleteBirloki(rw http.ResponseWriter, req *http.Request) {
      dat,err := httputil.DumpRequest(req,true)
      if err != nil {
          fmt.Fprintf(rw,"BAD")
          return
      }
      fmt.Println(string(dat))
  </code></pre>
  
  <p>and the print out is</p>
  
  <pre><code>POST /delete_birloki HTTP/1.1
  Host: 127.0.0.1:8080
  Accept: */*
  Accept-Encoding: gzip, deflate
  Accept-Language: en-US,en;q=0.8
  Connection: keep-alive
  Content-Type: application/x-www-form-urlencoded; charset=UTF-8
  Cookie: weve_been_here_before=true; _ga=GA1.1.606577919.1412775218
  Origin: http://127.0.0.1:8080
  Referer: http://127.0.0.1:8080/config/?birloki=&amp;north=&amp;east=
  User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.111 Safari/537.36
  X-Requested-With: XMLHttpRequest
  
  birloki%5B%5D=france
  </code></pre>
  
  <p>Can anybody explain WHY the variable name has been changed?
  in a similar case I could request for "birloki[]" with</p>
  
  <pre><code>birloki := req.PostFormValue("birloki[]")
  </code></pre>
  
  <p>but even that does not seem to work in this case</p>