http request
1 posts in topic
Flat View  Flat View

Posted By:   frederi_barachant
Posted On:   Monday, August 13, 2001 08:04 AM

I am creating a small program to parse http requests. I always get the parameters of the header in the same order, that is fine. My problem is that i can't find anywhere (i've been reading the rfc and tons of docs) if the order of the parameters can or not be scrambled. I would like to be sure. Does someone know?

Re: http request

Posted By:   Bozidar_Dangubic  
Posted On:   Monday, August 13, 2001 09:06 AM

i am not sure i understand your question exactly, but here is an idea: why don't you program so that it does not matter what is the order of parameters? in my opinion, you should never code so that you depend on order, especially not of the order of parameters in something like a request object. for example, say that something changes down the road and parameter order changes on you. now you have to fix your code. in other words, you are creating a dependency between your code and other code which you do not have a complete control over. that is not a good programming practice. so just code so that the order does not matter and then leave your code in the archives... :-)
About | Sitemap | Contact