Home > Back-end > Does anyone know? About TIdHTTP Post response is slow, slower than the Get () three times
Does anyone know? About TIdHTTP Post response is slow, slower than the Get () three times
Time:10-04
Use TIdHTTP controls access to a web page, including the Get () operation time is 230 ms, Post () takes 1000 ms, using caught tools found a Post () operation is more than the Get () operations out of a process of the Connect, this operation takes 640 ms, every time it took a long time,
And use the web browser to open the post and Get () () the time is same, only more than 200 ms,
The great spirit which is how to return a responsibility excuse me? How to make a post () operation efficiency is high?
CodePudding user response:
Question which I doubt is cached in the IE browser is cached in the information system, IE is a shell, closed the IE cache are still, you'd better test method is to clear the IE cache, restart the computer, offline condition monitoring, start to connect to the Internet, using IE to access the specified page, the speed of access for the first time in the real you see what effects
For IdHTTP, it provides some parameters can realize the connection between leading function, is to do a connection, if you don't change the site there is no need for a second connection, and then POST it should save a little time