Re: [go-nuts] Re: Golang HTTP POST handling

2018-02-20 Thread Sankar P
Thanks. Will do. 2018-02-21 4:31 GMT+05:30 Andrew Watson : > You should, of course, consider adding some rigor such as CSRF protection > to that form! I'd suggest something like http://www. > gorillatoolkit.org/pkg/csrf for that! > > > On Tuesday, February 20, 2018 at 11:16:57 AM UTC-5, Sankar wr

[go-nuts] Re: Golang HTTP POST handling

2018-02-20 Thread Andrew Watson
You should, of course, consider adding some rigor such as CSRF protection to that form! I'd suggest something like http://www.gorillatoolkit.org/pkg/csrf for that! On Tuesday, February 20, 2018 at 11:16:57 AM UTC-5, Sankar wrote: > > Hi, > > I have a Golang HTTP server which is consumed by mobi

Re: [go-nuts] Re: Golang HTTP POST handling

2018-02-20 Thread Sankar P
Perfect. Thanks. This is what I wanted. I just replaced id with name and it started working. 2018-02-20 21:59 GMT+05:30 : > This worked for me in a project. My form is > and the input is . On the server I > use r.ParseForm then r.FormValue("password"). > > Matt > > On Tuesday, February 20, 2018

[go-nuts] Re: Golang HTTP POST handling

2018-02-20 Thread matthewjuran
This worked for me in a project. My form is and the input is . On the server I use r.ParseForm then r.FormValue("password"). Matt On Tuesday, February 20, 2018 at 10:16:57 AM UTC-6, Sankar wrote: > > Hi, > > I have a Golang HTTP server which is consumed by mobile Apps via HTTP. > > For one wo

[go-nuts] Re: Golang HTTP POST handling

2018-02-20 Thread matthewjuran
This worked for me. My form is " > Password > > Repeat Password > required> > Change Password > > > > ` > res.WriteHeader(http.StatusOK) > res.Header().Set("Content-Type", "text/html") > res.Write([]byte(body)) > } else if req.Method == http.MethodPost { > err := req.ParseForm() > log.Println(