I have a plain text file (256 bytes long) that I wish to send via HTTP to a CGI
for processing.
At present I do the following:
Open a socket to the HTTP server (where the CGI is held).
Open the text file for reading and send the following down the socket:
POST /cgi-bin/testprogram
Content-type: text/plain
Content-length: 256
(file gets put here)
The server picks up the POST query and initiates the CGI but it does not set
the Content-type and Content-length environment variables.
Got any ideas?
Am I using the MIME type headers incorrectly?
Is there a better way to do this?
Dave Banthorpe (EOS).