Problem while sending data to the server

@FNSPH your code is posted without the necessary triple backticks at the beginning and end, so it doesn’t display correctly.
In addition, you’ve hijacked a post about an unrelated topic rather than creating a new post and providing all of the necessary background information.

As a result, I’ve deleted your post.

Please create a new “Need help with my project” topic and carefully read the guidance information that appears when you do this, and provide the requested information, and follow the example about how to post code correctly.

Pete.