Home > other >  Software test will ask questions - what is the difference between the post and get?
Software test will ask questions - what is the difference between the post and get?

Time:11-28

Request data location: different post request data in the request body (bodydata), get request data is placed behind the request path (uri) to use? Separated or inside the pramater
Security: post get safer than some
Transmission limit: get transfer limit not more than 2 KB, post is unlimited
Role: post main send data to the server, get to the main server to get data,

CodePudding user response:

6 6. 666 lu

CodePudding user response:

Supplement refueling classmate, completely true, but as I of the interviewer, if you can hear the answer will be better,
Post are commonly used to create and modify data, such as registration, log on to this, and get used to get general data information, but get can also submit data, post also can get the data, mainly is the realization of the server side, side to receive post method, for example, it do is data acquisition; And accept the get method, is that the data submitted,
So the way of using the two methods is a kind of conventional,
In the usual test process, for the get and post, tool selection on there are some difference, such as some performance test tool cannot post request, such as ab, httpload,
When answer the interviewer can answer some theoretical, and combined with the practice of his name some experience, finally add some summary, it will be very impress the interviewer,

CodePudding user response:

Support upstairs??????
  • Related