Skip to content
This repository has been archived by the owner on Jan 2, 2018. It is now read-only.

414 Request-URI Too Large from :format => :file #19

Open
cgriego opened this issue Apr 12, 2010 · 3 comments
Open

414 Request-URI Too Large from :format => :file #19

cgriego opened this issue Apr 12, 2010 · 3 comments

Comments

@cgriego
Copy link
Contributor

cgriego commented Apr 12, 2010

I'm graphing 3 months worth of data and it exceeds the URI length allowed by HTTP, creating a 414 Request-URI Too Large exception. googlecharts should use a POST request when the format is writing to a file which increases the supported URI length from 2K to 16K.

http://code.google.com/apis/chart/docs/post_requests.html

@mattetti
Copy link
Owner

Valid bug and valid suggestions, however if the image is being called from within an html page it won't work. guess we should add a check and a POST request when the file format is requested.

Can you provide a patch by any chance?

@cgriego
Copy link
Contributor Author

cgriego commented Apr 15, 2010

I have started working on a patch.

@cgriego
Copy link
Contributor Author

cgriego commented Apr 21, 2010

Patch complete with zero public interface changes. Specs pass.
http://github.com/cgriego/googlecharts/commit/5b6d9908f7ded1baa12e6789c542e174c69fecac

There's a couple of other commits here for your consideration.
http://github.com/cgriego/googlecharts/commits/file-post

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants