Max URL length?

1,040 views
Skip to first unread message

Tom Harrington

unread,
Jan 14, 2008, 5:52:08 PM1/14/08
to Google Chart API
I've been finding that sometimes my charts show no data-- as if the
chd parameter were missing. I suspect my URLs are getting too long,
but I don't see a maximum length documented. Does anyone know what it
is?

JMan

unread,
Jan 14, 2008, 10:16:32 PM1/14/08
to Google Chart API
Here is an interesting discussion on the subject of long URLs:

http://www.boutell.com/newfaq/misc/urllength.html

There are both browser and web server considerations to take into
account.

Apparently, URLs over 2000 characters are not recommended.

Tom Harrington

unread,
Jan 14, 2008, 11:49:57 PM1/14/08
to google-c...@googlegroups.com
Not recommended in that discussion because Internet Explorer can't
handle more than 2083 (or couldn't when that page was written). But
I'm not using IE, and most of the examples cited can handle far more.
Google charts seems to give up after about 1024 though. At least
that's how it looks from here.


--
Tom Harrington
atomi...@gmail.com
AIM: atomicbird1

Anton Shevchuk

unread,
Jan 15, 2008, 2:02:02 AM1/15/08
to Google Chart API

Tom Harrington

unread,
Jan 15, 2008, 7:51:50 PM1/15/08
to google-c...@googlegroups.com
On Jan 15, 2008 12:02 AM, Anton Shevchuk <AntonS...@gmail.com> wrote:
> Read this answer: http://www.boutell.com/newfaq/misc/urllength.html

That's the same link posted previously, and it still doesn't address
what limits Google might be setting on this API.

As I mentioned previously, my URLs are still well below the limits
described on that page when chart processing appears to be cut off.
It looks like the limit is a little higher than I had previously
guessed-- somewhere around 1200 characters, maybe?

Ryan Joseph

unread,
Jan 31, 2008, 1:47:19 PM1/31/08
to Google Chart API
I've found experimentally that a ~2000-character URL is about as much
as Google Charts will accept... you *might* be able to squeeze by
within 2048 characters (a natural limit we would all agree), but I ran
into intermittent "Bad Request" errors when I did.

Also, if you're running into problems with the max length of a GET
URL, try one of the other encoding schemes, they may at least allow
you to cram more data into your URL in the same number of characters.

-R

On Jan 15, 4:51 pm, "Tom Harrington" <atomicb...@gmail.com> wrote:
> On Jan 15, 2008 12:02 AM, Anton Shevchuk <AntonShevc...@gmail.com> wrote:
>
> > Read this answer:http://www.boutell.com/newfaq/misc/urllength.html
>
> That's the same link posted previously, and it still doesn't address
> what limits Google might be setting on this API.
>
> As I mentioned previously, my URLs are still well below the limits
> described on that page when chart processing appears to be cut off.
> It looks like the limit is a little higher than I had previously
> guessed-- somewhere around 1200 characters, maybe?
>
> --
> Tom Harrington
> atomicb...@gmail.com
> AIM: atomicbird1
Reply all
Reply to author
Forward
0 new messages