hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aekold Helbrass <helbr...@gmail.com>
Subject Re: NIO - data dialog in single HTTP request-response
Date Fri, 18 Nov 2011 20:02:01 GMT
On Fri, Nov 18, 2011 at 5:36 PM, Oleg Kalnichevski <olegk@apache.org> wrote:
> On Fri, Nov 18, 2011 at 12:04:19PM +0200, Aekold Helbrass wrote:
>> Hi All!
>>
>> In short, my question is: is it possible to create data dialog in
>> single HTTP request? I mean I am reading first 10 bytes - sending
>> something in response, client reacts and sens 10 more bytes, and all
>> that in single HTTP request, without breaking or closing it. I am
>> interested in server side, as client side is plain sockets on
>> blackberry. It is highly-specialized server for single task, so
>> general cases and "normal cases" are ignored.
>>
>> To be honest - I have absolutely no idea if HTTP specification allows
>> something like this at all, and couldn't find relevant info.
>>
>
> No, it does not. HTTP is a request / response based protocol. What you are talking about
sounds very much like Websockets or a similar protocol.

And what about server push? Can it be done with HTTP Components, so I
could initiate dialog from the server side instead of processing
client requests every N seconds?

---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org


Mime
View raw message