Jan-09-2022, 05:13 PM
I put the line data = data.decode('utf-8') in my program to see what it would do and I see that it takes off the b' ' and just returns the GET / and the data with the & in the middle since I'm getting 2 string variables. What's the easiest way to strip off the GET / and extract the 2 strings to then so that I can then format them in another string to send off to another computer? First variable 10 characters, 2nd variable 3 characters. Also what command do I use to send off the data to another computer? Do I have to open a secondary socket to send that info or is there just a simple send command that would do that?
Thanks!!! on the data.decode suggestion. I had tried that before my submission to the forum here, but didn't know about putting the utf-8 or even what that code means.
Thanks!!! on the data.decode suggestion. I had tried that before my submission to the forum here, but didn't know about putting the utf-8 or even what that code means.