The [web_response->replaceHeader] method is used to change the contents of an existing header name+value pair being returned to the client browser.
web_response->replaceHeader(name = value)
Use the [web_response->replaceHeader] method.
Code
web_response->replaceHeader('X-Powered-By' = 'Lasso 9 + LEAP 5')
// return the web_response->headers for demonstration purposes
web_response->headers
Result
array((Content-Type = text/html; charset="UTF-8"), (X-Powered-By = Lasso 9 + LEAP 5))
Use the [web_response->replaceHeader] method.
Code
web_response->replaceHeader('Content-type' = 'application/vnd.ms-excel')
web_response->replaceHeader('Content-Disposition' = 'attachment;filename=your_file_name.xls')
Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.
©LassoSoft Inc 2015 | Web Development by Treefrog Inc | Privacy | Legal terms and Shipping | Contact LassoSoft
Recent Comments