Lucee Function Reference

internalrequest()

Makes a request to the CFML Engine internally.

Example

internalrequest(string template,[string method,[any urls,[any forms,[struct cookies,[struct headers,[any body,[string charset,[boolean addToken,[boolean throwonerror]]]]]]]]]):struct

Arguments

The arguments for this function are set. You can not use other arguments except the following ones.
Name Type Required Default Value Description
template string  Yes   Template path (script name) for the request (example:/test/index.cfm).  
method string  No get method of the request (GET,POST,PUT,DELETE ...)  
urls any  No   URL scope passed to the request (query string). This can be a struct or a string following this format [name1=value1&name2=value2].  
forms any  No   FORM scope passed to the request.This can be a struct or a string following this format [name1=value1&name2=value2].  
cookies struct  No   Cookie scope passed to the request  
headers struct  No   Request header entries passed to the request  
body any  No   body to send with the request  
charset string  No   charset used for the request, if not set the web charset is used.  
addToken boolean  No false if yes add urlToken as cookie  
throwonerror boolean  No true if true (default) and the called age throws an exception, that exception is clso thrown within the caller request. If false itis catched and only reported in he resulting struct.