I want to send some strings in a list in a POST call. eg:
www.example.com/?post_data = A list of strings
The python code receives the data as a single string (Instead of a list of strings). How do I post it as a list of strings?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There’s no such thing as a ‘list of strings’ in a URL (or in practically anything in HTTP – if you specify multiple values for the same header, they come out as a single delimited value in most web app frameworks IME). It’s just a single string. I suggest you delimit the strings in some way (e.g. comma-separated) and then parse them out again at the other end.