0

Is there a limit to the length of a url in Rails apps? I have a bunch of query parameters that I am trying to attach to a URL, and, at some point, I simply get a !! Invalid request error in the logs. This error appears when I try to attach something like 400 integers as a query parameter.

If there is a limit, is there a way around it, or do I need to switch to Post methods?

EDIT

Is there a Rails specific limitation that may be less than the HTTP standard?

Tyler DeWitt
  • 23,366
  • 38
  • 119
  • 196

1 Answers1

2

I cannot tell from your question if you are encountering the limit with a browser, or going through a specific web server, but that can have it's limits. I don't know if Rails has a limit, but apache httpd does.

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

Marlin Pierce
  • 9,931
  • 4
  • 30
  • 52