I'm having the same issue with a test form. If I set "response receipts" to "Always" I only ever get error 400. if I set "response receipts" to "If respondent requests it" I am able to get the form to submit.
The reason why you are getting a response error of 400 is because when using the requests module, the posted data is automatically url encoded. Hence posting options that contains characters such as "+", "@" ..etc will cause a bad form error.
Hence, one way you can work around this is to have the request post http URL instead by passing a string.
string = "entry.xxx=Option+1&entry.xxx=option2"
r = requests.post(url, params = string)
Hope this helps.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
its not working in form which has set response receipt always,
No that's not the case. As I've tried it on such form which sends a response receipt.
I'm having the same issue with a test form. If I set "response receipts" to "Always" I only ever get error 400. if I set "response receipts" to "If respondent requests it" I am able to get the form to submit.
Any thoughts?
try again bro, i have tried today, its working when i disable this option and getting error 400 when i activate it
The reason why you are getting a response error of 400 is because when using the
requests
module, the posted data is automatically url encoded. Hence posting options that contains characters such as "+", "@" ..etc will cause a bad form error.Hence, one way you can work around this is to have the request post http URL instead by passing a string.
Hope this helps.