What is the best way to post data from web browser to server?

Posted by Kronass on Stack Overflow See other posts from Stack Overflow or by Kronass
Published on 2010-06-06T11:44:29Z Indexed on 2010/06/06 11:52 UTC
Read the original article Hit count: 381

Filed under:
|
|

Hi,
I want to know what is the best way to send data from web browser to server using post method.
I've seen a practice where they wrap all the elements data in XML, convert it into Base64 string and then post it to the server (via Ajax or hidden field).
this way will not work if the Javascript is disabled, any how if I ignored this.
is it a good practice to wrap elements into XML (or create my custom wrapper in general) and post them to server saying it will enhance the maintainability of the code or just stick with the classical way and no need to add unnecessary text in the post.

© Stack Overflow or respective owner

Related posts about best-practices

Related posts about post