Another dumb client server question ESP8266

Is it possible to go back and forth between client and server in the same sketch, and what are the gotchas?

Is it possible to go back and forth between client and server in the same sketch

What do you mean by "go back and forth"?

A client makes a request. A server responds, to that client, with appropriate data, and then forgets all about the client. So, typically, there is no "back and forth". If the client wants to analyze the response, and make another request, it is, of course, free to do that. But, the server won't have any idea that it is the same client as some other client that it has responded to.

What I meant was if you are engaged as a client say, can you also be engaged somewhere else as a server?

What I meant was if you are engaged as a client say, can you also be engaged somewhere else as a server?

An Arduino, acting as a server, can act as a client, to make a GET request to a different server.

thanks !!