Review your favorite Linux distribution.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 10-07-2017, 02:04 AM   #1
Michael Uplawski
Registered: Dec 2015
Location: Normandy, France
Distribution: Debian buster/sid
Posts: 691
Blog Entries: 22

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
[HTTP] Order of request parameters

Good morning

Can you explain to me a situation where the order of request-parameters in a HTTP request could be of importance?

More specifically, I wonder, if I can safely assume that the order of these parameters is insignificant.

The question arises, when a user-provided value has to be included, but the parameter which carries the value is not the last one in the final URL.
The pons-dictionary ( composes searches like this:
The search-criteria is assigned to the parameter “q”, which is a deliberate but natural choice.

I use to change the order of parameters to simplify the construction of an url, by just appending values at the end. So my “URL-template” would be

That is, after the initial "?" I first put everything that does not need to be modified and end with "q" as last parameter.

For long years I have programmed web-applications, but since had some success in obliterating that souvenir. I do not remember any situation where the parameters had to be in the always same order, nor if question-mark and ampersand had any special meaning, apart from the fact that HTTP has never been meant to be abused in this way and the desire to violate this old rotten protocol has called for all kinds of strange detours and handicraft work...



Last edited by Michael Uplawski; 10-07-2017 at 11:37 AM. Reason: Less “just”. More other words, less full-stops at the wrong spots. New, arbitrary errors added.
Old 10-07-2017, 06:45 AM   #2
LQ Guru
Registered: Nov 2003
Location: Canada
Distribution: Slackware
Posts: 8,372

Rep: Reputation: 3419Reputation: 3419Reputation: 3419Reputation: 3419Reputation: 3419Reputation: 3419Reputation: 3419Reputation: 3419Reputation: 3419Reputation: 3419Reputation: 3419
Originally Posted by Michael Uplawski View Post
Can you explain to me a situation where the order of request-parameters in a HTTP request could be of importance?

Python web frameworks such as Django parse them into data structures that have undefined order, before presenting them to the programmer. I assume that's true for most server-side web frameworks.

Last edited by dugan; 10-07-2017 at 02:18 PM.
1 members found this post helpful.


http, request-parameter, url

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Log HTTP request mario.almeida Linux - Security 3 02-15-2011 10:59 AM
RPC request process order L1nuxn00b703 Solaris / OpenSolaris 1 03-02-2010 05:44 AM
In order to install all kinds of software for linux I have but one request alpha883 Linux - Software 6 04-29-2009 11:44 PM
request parameters contain both > and < pudhiyavan Linux - Software 0 02-22-2006 01:33 AM
http request mkamyar Linux - Software 5 08-30-2005 02:30 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:06 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration