Ardunio uno and Python request

Hi

this sound silly unfortunately i’m searching for the answer across the internet

I’m using chat example as ref able to send/receive data. on my broswer also tested using curl command in terminal

while using python for communication using requests facing error

ex:

import requests

x = requests.get('http://192.168.1.x:xx')

print(x.text)

ConnectionError: (‘Connection aborted.’, BadStatusLine("’’",))

And the connection to an Arduino Uno is ?

What is the Arduino supposed to be doing, and what it is actually doing?

For hints on successful posting, please read and follow the instructions in the "How to use the forum" post at the head of every forum topic.