rushenas Posted August 8, 2007 Share Posted August 8, 2007 Hi all I want my home page (index.php), can determine which contents must be shown. But not with regular variables passed by GET or POST method. When somebody enter the website address, he/she must see regular index (main) page. But when a request from a SOAP server recieve, index page must provide a web service function. So my code must determine whether access to index page recieved from a regulat HTTP request, or from a SOAP server. How can I implement this? Quote Link to comment https://forums.phpfreaks.com/topic/63855-undestanding-type-of-request/ Share on other sites More sharing options...
GingerRobot Posted August 8, 2007 Share Posted August 8, 2007 Could be way off - ive never used SOAP, but could the $_SERVER['SERVER_PROTOCOL']; variable be what you are looking for? Quote Link to comment https://forums.phpfreaks.com/topic/63855-undestanding-type-of-request/#findComment-318269 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.