/    Sign up×
Community /Pin to ProfileBookmark

Max Length in Get Variable

What is a max length you can pass through a get variable?

Thanks

to post a comment
PHP

4 Comments(s)

Copy linkTweet thisAlerts:
@scragarOct 06.2008 — that's all dependent on the browser, I'd assume a 255 limit, but that's unlikely to be a true representation of most browsers.
Copy linkTweet thisAlerts:
@NogDogOct 06.2008 — As Scragar alludes to, there is no specific maximum length for a URI in the HTTP standards, so it's up to each browser as to what it decides to support, plus your web server may have its own maximum that it will allow. If your URL query string is going to be more than a couple hundred characters, it's probably time to either consider using a post-method form instead (for which you can use CSS to make it look like of link, if that's the issue) or else to refactor things so that you do not need to send so much data in the URL.
Copy linkTweet thisAlerts:
@sc_kingauthorOct 07.2008 — Is there a way to shorten the length of the uri but keep its structure intact?

Does encryption do this?

Thanks
Copy linkTweet thisAlerts:
@NogDogOct 07.2008 — Encryption almost always makes things longer. You could try using some sort of compression, but then you'll probably have to base64_encode it or something simillar, which will likely undo much of the compression.

But ultimately, why so much data in a URL? Why not post it instead?
×

Success!

Help @sc_king spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...