stretchr / sdk-js

HTML5 and JavaScript SDK for Stretchr
http://docs.stretchr.com/sdks/javascript.md
3 stars 0 forks source link

Figure out how to handle payloads that are too long for the URL string #6

Closed tylerstillwater closed 10 years ago

tylerstillwater commented 11 years ago

If you try to send a payload over jsonp with the body in the URL string that is too long, everything goes to hell.

We need to figure out how to get that data to the server in a reliable way that isn't affected by size.

matryer commented 11 years ago

Ideally, the data wouldn't be that big. If it is, a different design might be a better solution.

Otherwise, some browsers will support actual HTTP Post (and not JSONP) which will avoid this.

Mat

Sent from my iPhone

On 28 Apr 2013, at 12:02, Tyler notifications@github.com wrote:

If you try to send a payload over jsonp with the body in the URL string that is too long, everything goes to hell.

We need to figure out how to get that data to the server in a reliable way that isn't affected by size.

— Reply to this email directly or view it on GitHub.

matryer commented 10 years ago

The real solution is to write an additional Transport object that uses real AJAX methods (with real HTTP methods) and not JSONP. This could be done now.

matryer commented 10 years ago

This is to be done for Node.js