Sorry, maybe I didn't express myself clearly... That's what I'm already doing, but what I'm trying to do is receive http request from a client (acting as a web server) and send http request to another one (acting as a client).
//Global variables
GSMServer server(80);
GSMClient client;
void setup(){
server.begin();
GSMClient client = server.available();
if (client)
{}
}
//Another function (runs at loop)
client.connect(ext_server, 8080);
I tried to create another client (client2) to make client.connect(ext_server, 8080). Have I to stop the server and stop the client (release socket) before trying to make the http request? Has anybody do it or is there another way to?