You are viewing a plain text version of this content. The canonical link for it is here.
Posted to httpclient-users@hc.apache.org by Miguel A Paraz <mp...@gmail.com> on 2005/11/24 11:08:16 UTC

Streaming MJPEG

Hi,
Has anyone looked into using commons-httpclient for opening a
streaming MJPEG URL from a network camera? Basically, the GET will
never return but the client should have access to the data as it comes
in.

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


Re: Streaming MJPEG

Posted by Roland Weber <RO...@de.ibm.com>.
Hi Miguel,

if the GET never returns, you're not talking about HTTP.
If the request body is not limited, you're fine with HttpClient.
Use GetMethod.getRequestBodyAsStream() after executing
the method, then read as much as you want to. Make sure
to call method.abort() rather than releaseConnection() when
you're done.

hope that helps,
  Roland




Miguel A Paraz <mp...@gmail.com> 
24.11.2005 11:08
Please respond to
"HttpClient User Discussion"


To
httpclient-user@jakarta.apache.org
cc

Subject
Streaming MJPEG






Hi,
Has anyone looked into using commons-httpclient for opening a
streaming MJPEG URL from a network camera? Basically, the GET will
never return but the client should have access to the data as it comes
in.

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




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