Get raw/undecoded post-data

Hello!

I want to receive a post-value that includes some %.
The problem is that golang (after req.ParseForm) automatically decodes these characters.
How can i get the raw encoded post value?

Thank you :smile:

try like this

if r.Method == "POST" {
	s := req.FormValue("field")
...

and should accept % in field named field.

FormValue callf ParseForm, so maybe has the same problem. The raw request body can be read from req.Body before any call to Form method.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.