Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Mar 2013
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Request-URI Too Large

    Hello i am trying to send a request to a game that i dont own using address bar i entered a long url because it has a lot of items i want in the game and i get this

    Request-URI Too Large
    The requested URL's length exceeds the capacity limit for this server.

    and

    Request Entity Too Large

    The requested resource

    does not allow request data with GET requests, or the amount of data provided in the request exceeds the capacity limit.

  • #2
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Location
    Saskatoon, Saskatchewan
    Posts
    16,978
    Thanks
    4
    Thanked 2,659 Times in 2,628 Posts
    This hasn't a thing to do with PHP, its a limitation of http protocol in combination with a browser and server. There is no defined limitation in RFC2616 from what I can find, but the general consensus is anywhere between 2kb and 8kb in request size. Older browsers support only up to 255bytes.
    So in short, your get request is too long, and you have to reduce it or find another method to send such as post or put.
    PHP Code:
    header('HTTP/1.1 420 Enhance Your Calm'); 

  • #3
    New to the CF scene
    Join Date
    Mar 2013
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    what do u suggest..because i am not really good with this

  • #4
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Location
    Saskatoon, Saskatchewan
    Posts
    16,978
    Thanks
    4
    Thanked 2,659 Times in 2,628 Posts
    Quote Originally Posted by LastManStanding View Post
    what do u suggest..because i am not really good with this
    There's not a solution for you. You cannot send more data in a get request than it expects, and the error indicates you have exceeded that. You'll need to choose a different request method such as put or post, but that may or may not work depending on what the script request expects.
    PHP Code:
    header('HTTP/1.1 420 Enhance Your Calm'); 


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •