I'm coding a simple python server to hold logs throughout a company. The site presents change logs for upcoming projects for all teams. Each team has the option to edit their logs. The way I did this was by making a form with a TEXTAREA which they fill out and submit. However, I can't for the life of me figure out how to pull the value of the textarea into my server. Right now I have:
def do_POST(self):
length = int(self.headers.getheader('content-length'))
results = self.rfile.read(length).split("&")
This works fine if you're trying to pull the results of something like a radio button, checkbox, or textbox but when POSTing it returns the value of the TEXTAREA differently.
How do I get what's in the TEXTAREA into a variable on the python-server side?