Html Form POST values extracted fine when at localhost:8080 but empty string when deployed at AppSpot

23 views
Skip to first unread message

Robin

unread,
Dec 9, 2016, 7:39:22 PM12/9/16
to google-appengine-go
Fri 2016.12.09


This simple POST handler will extract form values when running at localhost:8080. [1]

However, when deployed to AppSpot, the values are an empty string. Changing the form action to 'GET'
works both at localhost:8080 and when deployed at AppSpot.

Tried r.PostFormValue("myValue")  and  r.FormValue("myValue") but both return ""
r.Method returns "POST" 

Even tried adding: enctype="multipart/form-data" to form element


Thank you for looking into this,  Robin

Reply all
Reply to author
Forward
0 new messages