These are chat archives for gin-gonic/gin

17th
Jan 2017
Andrzej Samek
@HaGii
Jan 17 2017 11:14
Hi, I'm trying to read array form POST data in gin.
Curl is: curl -X POST -H "Content-Type: application/x-www-form-urlencoded" -d 'array[0]=123&array[1]=456' "http://localhost:8080/"
How can I get array data? I've tried: c.PostFormArray("array") and c.PostForm("array") but it doesn't work.
Andrzej Samek
@HaGii
Jan 17 2017 14:52
I've noticed that using array=123&array=456 solves the issue.