Questions tagged [http-streaming]

HTTP server push (also known as HTTP streaming) is a mechanism for sending data from a web server to a web browser.

HTTP server push (also known as HTTP streaming) is a mechanism for sending data from a web server to a web browser.

More details at Wikipedia page on Push Technology

232 questions
152
votes
4 answers

My Understanding of HTTP Polling, Long Polling, HTTP Streaming and WebSockets

I have read many posts on SO and the web regarding the keywords in my question title and learned a lot from them. Some of the questions I read are related to specific implementation challenges while others focus on general concepts. I just want to…
Software Guy
  • 3,190
  • 4
  • 21
  • 21
82
votes
6 answers

jQuery read AJAX stream incrementally?

I have read this question but it doesn't exactly answer my question. Unfortunately, it looks like things have changed in in the XHR object since I last looked at AJAX, so it is no longer possible to directly access responseText before it is finished…
Josh
  • 4,412
  • 7
  • 38
  • 41
26
votes
2 answers

What is the difference between HTTP streaming and server sent events?

My understanding is that HTTP streaming involves the client sending an HTTP request and then response to the request being sent over time allowing the server to essentially push to the client. In what I have read it seems that SSEs operates along…
Bren
  • 3,516
  • 11
  • 41
  • 73
24
votes
2 answers

How do I read a streaming response body using Golang's net/http package?

I am trying to connect to an endpoint that does http streaming of json data. I was wondering how to perform a basic request using Go's net/http package and read the response as it comes in. Currently, I am only able to read the response when the…
chourobin
  • 4,004
  • 4
  • 35
  • 48
20
votes
2 answers

Long Polling/HTTP Streaming General Questions

I'm trying to make a theoretical web chat application with php and jquery, I've read about long polling and http streaming, and I managed to apply most principles introduced in the articles. However, there are 2 main things I still can't get my head…
Madara's Ghost
  • 172,118
  • 50
  • 264
  • 308
12
votes
2 answers

Rails HTTP streaming with HAML

There appears to be an issue with using HTTP streaming with HAML projects in rails. It works perfectly if I use ERB instead. Apparently, I'm not the only one with this problem. It doesn't work with placing stream at the top of the controller, or…
Julio Santos
  • 3,837
  • 2
  • 26
  • 47
12
votes
1 answer

Long Polling with Spring's DeferredResult

The client periodically calls an async method (long polling), passing it a value of a stock symbol, which the server uses to query the database and return the object back to the client. I am using Spring's DeferredResult class, however I'm not…
12
votes
2 answers

HTTP streaming connection (SSE) client disconnect not detected with Sinatra/Thin on Heroku

I am attempting to deploy a Sinatra streaming SSE response application on the Cedar stack. Unfortunately while it works perfectly in development, once deployed to Heroku the callback or errback never get called when a connection is called, leading…
mroth
  • 467
  • 4
  • 9
10
votes
2 answers

Efficiently reading lines from compressed, chunked HTTP stream as they arrive

I've written a HTTP-Server that produces endless HTTP streams consisting of JSON-structured events. Similar to Twitter's streaming API. These events are separated by \n (according to Server-sent events with Content-Type:text/event-stream) and can…
Thomas B.
  • 2,276
  • 15
  • 24
10
votes
1 answer

How to stream an HTTP file upload without the Content-Length header?

Is it possible to upload a file to an apache php server without including the content-length header ? I am trying to stream a file that I am creating on the fly as a file upload. When I don't use the content-length header I got the apache "501…
James Hackett
  • 1,580
  • 2
  • 13
  • 14
9
votes
4 answers

Streaming with Node.js, or any other Comet solution

I'm trying to build a streaming solution for an internal app, but am drawing blanks for a solution to get past a roadblock. Currently, in my working example, I'm using APE, but due to restrictions I can't have any foreign running processes on the…
A Wizard Did It
  • 3,614
  • 4
  • 28
  • 32
9
votes
3 answers

Http Media Streaming Server

I have developed video streaming application with RED5 media server(RTMP). Instead of RTMP need to stream live video through HTTP. Any open source HTTP media server?? Is any open source server which supports both RTMP and HTTP ? Thanks in advance.
9
votes
3 answers

XHR streaming closes connection by design?

I was reading this article: http://blog.pusher.com/what-came-before-websockets/, and the following text gets my attention: XHR Streaming worked in all browsers the responseText of the XMLHttpRequest object would continue to grow until the…
skyork
  • 7,113
  • 18
  • 63
  • 103
9
votes
2 answers

Optimization: Dumping JSON from a Streaming API to Mongo

Background: I have a python module set up to grab JSON objects from a streaming API and store them (bulk insert of 25 at a time) in MongoDB using pymongo. For comparison, I also have a bash command to curl from the same streaming API and pipe it to…
Sagar Hatekar
  • 8,700
  • 14
  • 56
  • 72
8
votes
3 answers

non http streaming video for iOS devices

I am using wowza to restream source rtsp streams to multiple types of end devices. Due to the buffering restriction with http based streaming, I cannot use it for my application. I need to use RTMP or RTSP for my restreams. aside: HTTP packetized…
michael
  • 2,577
  • 5
  • 39
  • 62
1
2 3
15 16