Setting PHP request header
Posted: Fri Nov 09, 2007 2:55 am
Hi,
Is the following possible in php ?
I would like to create a URL using php which contains specific information passed in the request.
For example, I would like to pass "PHP_AUTH_USER" in the request to the URL. It has to be in the request as my existing code checks the request for this value.
Basic Authentication would be the usual way I would retrieve this value but in this case I have allowed requests coming from a specific machine to access pages in my existing portal (written in php), hence PHP_AUTH_USER is not set in the request.
How can I set the PHP_AUTH_USER in the request and essentially make it persistent for any subseqent links that I click on. Other pages in the Portal rely on this being set in the header as they check for this value. If this value isn't found, the page (created using php) doesn't work.
If anyone know how to do this or could point me at documentation or in the right direction will you let me know.
Thanks,
Ed.
Is the following possible in php ?
I would like to create a URL using php which contains specific information passed in the request.
For example, I would like to pass "PHP_AUTH_USER" in the request to the URL. It has to be in the request as my existing code checks the request for this value.
Basic Authentication would be the usual way I would retrieve this value but in this case I have allowed requests coming from a specific machine to access pages in my existing portal (written in php), hence PHP_AUTH_USER is not set in the request.
How can I set the PHP_AUTH_USER in the request and essentially make it persistent for any subseqent links that I click on. Other pages in the Portal rely on this being set in the header as they check for this value. If this value isn't found, the page (created using php) doesn't work.
If anyone know how to do this or could point me at documentation or in the right direction will you let me know.
Thanks,
Ed.