What's the maximum period of a URL in apache? Where's it recorded, and it is it configurable?

I am applying an openid identity provider, and want to be aware of restrictions I am facing. I know of the 2048 byte path limit on the internet Explorer. That may be handled specifically using user agent recognition. Other browsers cash greater URL limits.

What exactly I am thinking about is apache server limits when coding a credit card applicatoin.

The default limit for the size of the request line is 8190 bytes (see LimitRequestLine directive). And when we take away three bytes for that request method (i.e. GET), eight bytes for that version information (i.e. HTTP/1./HTTP/1.1) and 2 bytes for that separating space, we finish track of 8177 bytes for that URI path plus query.

  • Ie: 2,083 figures, with a maximum of 2,048 figures within the path area of the URL
  • Opera: 65,536 figures appear, but longer Web addresses still work even up past 100,000
  • Safari: > 80,000 figures
  • Opera: > 190,000 figures
  • IIS: 16,384 figures, but is configurable
  • Apache: 4,000 figures

From: http://world wide web.danrigsby.com/blog/index.php/2008/06/17/relaxation-and-max-url-size/

The state length based on the offical Apache paperwork is 8,192, however, many everyone has encounter trouble at ~4,000.

MS Ie is often the restricting factor anyway, because it caps the utmost URL size at 2,048.

Roughly 4,000.

Source: I am Feeling Lucky

Permitted size URI is 8177 figures in GET request. Simple code in python for such testing.

#!/usr/bin/env python2

import sys

import socket

if __title__ == "__primary__":

    string = sys.argv[1]

    buf_get = "x" * int(string)

    buf_size = 1024

    request = "Mind %s HTTP/1.1nHost:localhostnn" % buf_get

    print "===>", request

    sock_http = socket.socket(socket.AF_INET, socket.SOCK_STREAM)

    sock_http.connect(("localhost", 80))


    while True:

       print "==>", sock_http.recv(buf_size)

       otherwise sock_http.recv(buf_size):



On 8178 figures you're going to get such message: HTTP/1.1 414 Request-URI Too Big

Researched "apache maximum url length" and also got the next (just a little old, but nonetheless relevent):

World wide web Frequently asked questions: What's the maximum period of a URL?