Skip to content Skip to sidebar Skip to footer

Asp.net -> Has Anyone Dealt With Image Urls That Are Over 2500 Characters?

I have ASPX page where I store images. The URL for these images are around 2000 characters. The value of this URL is read from somewhere and I don't have control. I would like to k

Solution 1:

The problem is not in the length of what the protocal can handle, but in the length your client can handle. Most browser have a max get size about 2000 chars. If you want more you need an other browser. However that is normally not under your control.

The HTTP protocol does not place any a priori limit on the length of a URI. Servers MUST be able to handle the URI of any resource they serve, and SHOULD be able to handle URIs of unbounded length if they provide GET-based forms that could generate such URIs. A server SHOULD return 414 (Request-URI Too Long) status if a URI is longer than the server can handle (see section 10.4.15).

Note: Servers ought to be cautious about depending on URI lengths above 255 bytes, because some older client or proxy implementations might not properly support these lengths.

You can try to use a post to send the information to the server and return the image to you client.

Post a Comment for "Asp.net -> Has Anyone Dealt With Image Urls That Are Over 2500 Characters?"