This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 18996 - Problem: There is not a direct way to POST data to an SSE server. For example, a large list of stock symbols (too long for a GET query string) that the SSE server is sending back real-time data for. Solution: Allow for an additional parameter to the Event
Summary: Problem: There is not a direct way to POST data to an SSE server. For example...
Status: RESOLVED WONTFIX
Alias: None
Product: WHATWG
Classification: Unclassified
Component: HTML (show other bugs)
Version: unspecified
Hardware: Other other
: P3 normal
Target Milestone: Unsorted
Assignee: Ian 'Hixie' Hickson
QA Contact: contributor
URL: http://www.whatwg.org/specs/web-apps/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-24 23:13 UTC by contributor
Modified: 2012-11-25 05:37 UTC (History)
2 users (show)

See Also:


Attachments

Description contributor 2012-09-24 23:13:28 UTC
Specification: http://dev.w3.org/html5/eventsource/
Multipage: http://www.whatwg.org/C#top
Complete: http://www.whatwg.org/c#top

Comment:
Problem: There is not a direct way to POST data to an SSE server. For example,
a large list of stock symbols (too long for a GET query string) that the SSE
server is sending back real-time data for.

Solution: Allow for an additional parameter to the EventSource constructor
that accepts data that can be POSTed to the SSE server.

Posted from: 69.36.85.89
User agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.89 Safari/537.1
Comment 1 Ian 'Hixie' Hickson 2012-11-25 05:37:03 UTC
If you need to send data to the server, use Web Sockets.
If you absolutely want to use EventSource, then just use XMLHttpRequest to post the data first, getting back an ID that represents the configured set, and then pass the ID in the URL in EventSource.