tags:

views:

133

answers:

1

I have a web service that accepts passed in params using http POST but in a specific order, eg (name,password,data). I have tried to use httplib but all the Python http POST libraries seem to take a dictionary, which is an unordered data structure. Any thoughts on how to http POST params in order for Python?

Thanks!

+3  A: 

Why would you need a specific order in the POST parameters in the first place? As far as I know there are no requirements that POST parameter order is preserved by web servers.

Every language I have used, has used a dictionary type object to hold these parameters as they are inherently key/value pairs.

Frozenskys