So basically all I want is to get rid of the error in Unity, the rest works just fine.
The error is that Unity request data from the server too much. Since that curl error.
Maybe coroutines in the update function aren't the way to go in Unity.
Anyway thank you for your feedback and time!
Have a nice day!