What are the data type limitations of the POST and GET HTML Form methods?

What are the data type limitations of the POST and GET HTML Form methods? You are limited only to passing only certain types of data, such as: strings, integers, floating elements.

+4
source share
2 answers

POST and GET send strings to the server. It is up to your program to determine how to analyze this data. Most frameworks give you a reason for this, which supports most primitive data types. In the case of ASP.NET MVC, it can bind to most objects.

+3
source

From what I know, there are no data type restrictions, but there is another restriction. GET has a maximum length that varies between browsers . Typically, I use POST for form submissions that do not require the user to bookmark or send the URL to someone.

0
source

Source: https://habr.com/ru/post/1312274/


All Articles