change the server information to be Tokens only
"Dmitriy A" <dima600eb DeleteThis @yahoo.com> wrote in message news:pM6dnYrvw5RnGqbd4p2dnA@giganews.com...
> Hi,
> Is there a way to minimize the amount of data in the http headers for a
> specific servlet/application that is sent back in an OK packet?
>
> I have a program that communicates with Apache/Tomcat by posting data to
> a servlet, but its a one-directional communication. The program doesn't
> expect any data back. Of course the servlet sends back an "http ok"
> packet back to my application to indicate that the request has been
> processed. The problem is that this application will be used over
> modems, and the 'http ok' packet is really big for its purpose and takes
> up a lot of bandwidth:
>
> this is a sample outgoing request:
>
> "POST /apppath?key1=value1&key2=value2 HTTP/1.1
> Content-length: 10
> Host: 192.168.129.192
> <10 bytes of binary data>"
>
> and I get back this:
>
> "HTTP/1.1 200 OK
> Date: Tue, 24 Feb 2004 01:13:22 GMT
> Server: Apache/2.0.44 (Unix) mod_ssl/2.0.44 OpenSSL/0.9.6b DAV/2
> mod_jk/1.2.2
> Content-Length: 2
> Content-Type: text/plain; charset=ISO-8859-1
>
> OK"
>
> which I promptly discard because I don't care about it.
>
> So the OK packet is bigger than my data packet.
> All I really need is something like:
> "HTTP/1.1 200 OK
> Content-Length: 2
> OK"
>
> maybe even
> "HTTP/1.1 200 OK" - but for now I purposefully write back the OK string.
>
> is this possible? I haven't been able to find much about this.
> Thank you!
>
>
> Dmitriy
>
>
>
>
>
>
>
><!-- ~MESSAGE_AFTER~ -->
>> Stay informed about: stripped down 200 OK response?