Predefined variables are variables that are already set through the code. The variables hold information ranging from built-in environment variables, last error messages to last retrieved headers. Essentially, the purpose is that it is a more effecient and quicker way to obtain important and common information.