I am trying to have a "conversation" between my client software and my CGI.exe on a hosted server via the internet.
The "conversation" is defined as:
Client initiates request on port 80 (so firewalls don't squak)
CGI.exe responds with some data
Client responds to CGI.exe
CGI.exe responds to client with more data
Client responds to CGI.exe
CGI.exe responds to client with more data
etc
etc
2MB later CGI.exe terminates "conversation" and quits.
As I understand it, the POST method is designed for a *single* POST to the CGI.exe and waits for a return. The CGI.exe can return multiple pieces of data for a while, but when it terminates, the client somehow knows the POST reply is finished. (how does it know this?)
Is it possible for the client send a response to each piece it recieves?
if I initiate another POST method from the client, this will spawn a second instance of the CGI.exe.
How is this typicaly done on port 80?
The "conversation" is defined as:
Client initiates request on port 80 (so firewalls don't squak)
CGI.exe responds with some data
Client responds to CGI.exe
CGI.exe responds to client with more data
Client responds to CGI.exe
CGI.exe responds to client with more data
etc
etc
2MB later CGI.exe terminates "conversation" and quits.
As I understand it, the POST method is designed for a *single* POST to the CGI.exe and waits for a return. The CGI.exe can return multiple pieces of data for a while, but when it terminates, the client somehow knows the POST reply is finished. (how does it know this?)
Is it possible for the client send a response to each piece it recieves?
if I initiate another POST method from the client, this will spawn a second instance of the CGI.exe.
How is this typicaly done on port 80?
Comment