How to send request to a server in my app?

I have a port listening to http request in my app(for debug purposes), I wonder if I can send request to that port and get data I need for testing through appium? I spent a lot of time searching but have no clue how to do it.