http - Is it valid to combine a form POST with a query string? -
i know in mvc frameworks, example, both query string params , form params made available processing code, , merged 1 set of params (often post taking precedence). however, valid thing according http specification? post to:
http://1.2.3.4/myapplication/books?bookcode=1234 ... , submit update alter book name book code 1234, you'd wanting processing code take both bookcode query string param account, , posted form params updated book information. valid, , idea?
is valid according http specifications ?
yes.
here general syntax of url defined in specs
http_url = "http:" "//" host [ ":" port ] [ abs_path [ "?" query ]] there no additional constraints on form of http_url. in particular, http method (i.e. post,get,put,head,...) used don't add together restriction on http url format.
when using method : server can consider request body empty.
when using post method : server must handle request body.
is thought ?
it depends need do. suggest link explaining ideas behind , post.
i can think in situation can handy have parameters user language in query part of url.
http post query-string
No comments:
Post a Comment